[dmd-beta] dmd 1.063 beta

Fawzi Mohamed fawzi at gmx.ch
Fri Jul 30 05:35:55 PDT 2010


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


More information about the dmd-beta mailing list