[Issue 2302] offsetof property not working properly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 26 10:46:49 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2302





------- Comment #1 from malagana15 at yahoo.es  2008-08-26 12:46 -------
Please note that this issue is related to offsetof for structures. Offsetof for
classes have had many bugs but have been fixed.

The thing here is that offsetof for a structure can only be called from a
static function and not from anywhere, so, porting some C code to D modules is
impossible or full of workarounds.


-- 



More information about the Digitalmars-d-bugs mailing list