[dmd-internals] Using symbol for instance variable offset

Jacob Carlborg doob at me.com
Tue Apr 1 12:31:56 PDT 2014


On 1 apr 2014, at 12:43, Daniel Murphy <yebblies at gmail.com> wrote:

> Can you do the offset symbols the same way as vtbl symbols (ie once per class) then reference them from DotVarExp::toElem?  If I understand correctly that's the right place for this.


The idea was to do it once per class then reference them from DotVarExp::toElem. I can have a look at how it's done for vtbl symbols. Would it be something like ClassDeclaration::toVtblSymbol?

[1] https://github.com/D-Programming-Language/dmd/blob/master/src/tocsym.c#L529

-- 
/Jacob Carlborg



More information about the dmd-internals mailing list