Access class fields from asm

Deewiant deewiant.doesnotlike.spam at gmail.com
Thu Jun 28 09:33:52 PDT 2007


Carl Volhard wrote:
> Curiously this way works
>     foo.b.offsetof
> 
> although the documentation says
>     FooBar.b.offsetof
> is the correct way. But this code generates the following compile errors:
> 
>> Error: 'this' is only allowed in non-static member functions, not main
>> Error: this for b needs to be type FooBar not type int

Ah, that'll be this then: http://d.puremagic.com/issues/show_bug.cgi?id=515

-- 
Remove ".doesnotlike.spam" from the mail address.


More information about the Digitalmars-d-learn mailing list