Mercurial > projects > ddmd
comparison dmd/OrExp.d @ 187:b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
author | Abscissa |
---|---|
date | Tue, 07 Jun 2011 23:37:34 -0400 |
parents | e3afd1303184 |
children |
comparison
equal
deleted
inserted
replaced
186:1a0c1126bc46 | 187:b0d41ff5e0df |
---|---|
20 import dmd.backend.elem; | 20 import dmd.backend.elem; |
21 import dmd.backend.OPER; | 21 import dmd.backend.OPER; |
22 | 22 |
23 import dmd.expression.Or; | 23 import dmd.expression.Or; |
24 | 24 |
25 import dmd.DDMDExtensions; | |
26 | |
25 class OrExp : BinExp | 27 class OrExp : BinExp |
26 { | 28 { |
29 mixin insertMemberExtension!(typeof(this)); | |
30 | |
27 this(Loc loc, Expression e1, Expression e2) | 31 this(Loc loc, Expression e1, Expression e2) |
28 { | 32 { |
29 register(); | 33 register(); |
30 super(loc, TOK.TOKor, OrExp.sizeof, e1, e2); | 34 super(loc, TOK.TOKor, OrExp.sizeof, e1, e2); |
31 } | 35 } |