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

Reply via email to