Mercurial > projects > ddmd
comparison dmd/CallExp.d @ 73:ef02e2e203c2
Updating to dmd2.033
author | korDen |
---|---|
date | Sat, 28 Aug 2010 19:42:41 +0400 |
parents | 2e2a5c3f943a |
children | ad4792a1cfd6 |
comparison
equal
deleted
inserted
replaced
72:2e2a5c3f943a | 73:ef02e2e203c2 |
---|---|
91 this(Loc loc, Expression e, Expression earg1) | 91 this(Loc loc, Expression e, Expression earg1) |
92 { | 92 { |
93 super(loc, TOK.TOKcall, CallExp.sizeof, e); | 93 super(loc, TOK.TOKcall, CallExp.sizeof, e); |
94 | 94 |
95 Expressions arguments = new Expressions(); | 95 Expressions arguments = new Expressions(); |
96 arguments.setDim(1); | 96 if (earg1) |
97 arguments.data[0] = cast(void*)earg1; | 97 { |
98 | 98 arguments.setDim(1); |
99 arguments.data[0] = cast(void*)earg1; | |
100 } | |
99 this.arguments = arguments; | 101 this.arguments = arguments; |
100 } | 102 } |
101 | 103 |
102 this(Loc loc, Expression e, Expression earg1, Expression earg2) | 104 this(Loc loc, Expression e, Expression earg1, Expression earg2) |
103 { | 105 { |
732 } | 734 } |
733 | 735 |
734 accessCheck(loc, sc, null, f); | 736 accessCheck(loc, sc, null, f); |
735 | 737 |
736 ve.var = f; | 738 ve.var = f; |
737 // ve.hasOverloads = 0; | 739 // ve.hasOverloads = false; |
738 ve.type = f.type; | 740 ve.type = f.type; |
739 t1 = f.type; | 741 t1 = f.type; |
740 } | 742 } |
741 assert(t1.ty == TY.Tfunction); | 743 assert(t1.ty == TY.Tfunction); |
742 tf = cast(TypeFunction)t1; | 744 tf = cast(TypeFunction)t1; |