Mercurial > projects > ddmd
comparison dmd/XorExp.d @ 56:51605de93870
TupleExp.optimize
UnrolledLoopStatement.ctor
UnrolledLoopStatement.semantic
UnrolledLoopStatement.blockExit
OrOrExp.checkSideEffect
FuncExp.syntaxCopy
FuncLiteralDeclaration.syntaxCopy
WhileStatement.hasBreak
StructInitializer.toExpression
StructLiteralExp.ctor
StructLiteralExp.optimize
BinExp.commonSemanticAssign
ModAssignExp.opId
Argument.isLazyArray
CommaExp.implicitConvTo
CommaExp.castTo
TypeClass.isBaseOf
createTypeInfoArray
TypeTuple.getTypeInfoDeclaration
TypeInfoTupleDeclaration.ctor
TypeNext.constConv
XorExp.implicitConvTo
TemplateParameter.isTemplateValueParameter
author | korDen |
---|---|
date | Sat, 21 Aug 2010 14:16:53 +0400 |
parents | 832f71e6f96c |
children | cab4c37afb89 |
comparison
equal
deleted
inserted
replaced
55:8c2c7b7579f8 | 56:51605de93870 |
---|---|
90 return e; | 90 return e; |
91 } | 91 } |
92 | 92 |
93 MATCH implicitConvTo(Type t) | 93 MATCH implicitConvTo(Type t) |
94 { | 94 { |
95 assert(false); | 95 MATCH result = Expression.implicitConvTo(t); |
96 | |
97 if (result == MATCHnomatch) | |
98 { | |
99 MATCH m1 = e1.implicitConvTo(t); | |
100 MATCH m2 = e2.implicitConvTo(t); | |
101 | |
102 // Pick the worst match | |
103 result = (m1 < m2) ? m1 : m2; | |
104 } | |
105 return result; | |
96 } | 106 } |
97 | 107 |
98 IntRange getIntRange() | 108 IntRange getIntRange() |
99 { | 109 { |
100 assert(false); | 110 assert(false); |