Walter just fixed that, a new beta hasn't been released with it yet. See the mailing list message that Walter sent just before yours.
-Steve ----- Original Message ---- > From: Fawzi Mohamed <[email protected]> > To: Discuss the dmd beta releases for D <[email protected]> > Sent: Fri, July 30, 2010 8:35:55 AM > Subject: Re: [dmd-beta] dmd 1.063 beta > > Thanks for the release, > > It seems that dmd has gotten a bit worse about requiring "this" to address >some elements/delegates. > > Nested structs/classes were always problematic, but now I have it in the >following (non nested) snippet > > {{{ > module bug; > > alias void delegate( void*, void* ) scanFn; > > extern (C) void rt_scanStaticData( scanFn scan ); > > struct Gcx{ > > void mark(void *pbot, void *ptop) { > fullcollect(pbot); > } > > size_t fullcollect(void *stackTop) > { > rt_scanStaticData(&mark); > return 0; > } > > } > }}} > bug.d(15): Error: cannot cast from Gcx* to Gcx > > using &this.mark makes it work... > > PS I am really looking forward to 64-bit support > > Fawzi > _______________________________________________ > dmd-beta mailing list > [email protected] > http://lists.puremagic.com/mailman/listinfo/dmd-beta > _______________________________________________ dmd-beta mailing list [email protected] http://lists.puremagic.com/mailman/listinfo/dmd-beta
