Mercurial > projects > ddmd
comparison dmd/PtrExp.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 | 52188e7e3fb5 |
comparison
equal
deleted
inserted
replaced
186:1a0c1126bc46 | 187:b0d41ff5e0df |
---|---|
29 import dmd.backend.Util; | 29 import dmd.backend.Util; |
30 import dmd.backend.TYM; | 30 import dmd.backend.TYM; |
31 import dmd.backend.mTY; | 31 import dmd.backend.mTY; |
32 import dmd.backend.OPER; | 32 import dmd.backend.OPER; |
33 | 33 |
34 import dmd.DDMDExtensions; | |
35 | |
34 class PtrExp : UnaExp | 36 class PtrExp : UnaExp |
35 { | 37 { |
38 mixin insertMemberExtension!(typeof(this)); | |
39 | |
36 this(Loc loc, Expression e) | 40 this(Loc loc, Expression e) |
37 { | 41 { |
38 register(); | 42 register(); |
39 super(loc, TOK.TOKstar, PtrExp.sizeof, e); | 43 super(loc, TOK.TOKstar, PtrExp.sizeof, e); |
40 // if (e.type) | 44 // if (e.type) |