July 30, 2010 [dmd-beta] dmd 1.063 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | 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 |
July 30, 2010 [dmd-beta] dmd 1.063 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to Fawzi Mohamed | 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 <fawzi at gmx.ch>
> To: Discuss the dmd beta releases for D <dmd-beta at puremagic.com>
> 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
> dmd-beta at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-beta
>
|
July 30, 2010 [dmd-beta] dmd 1.063 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steve Schveighoffer | On 30-lug-10, at 15:06, Steve Schveighoffer wrote: > 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. ok thanks, I hadn't clicked the bug, and realized that it was the same, I will wait the new release, the current one the had a segfault compiling http://github.com/fawzi/blip/blob/master/blip/parallel/smp/SmpModels.d hopefully also that will be fixed... Fawzi |
July 30, 2010 [dmd-beta] dmd 1.063 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright, el 29 de julio a las 22:42 me escribiste: > Fix checked in. WORKSFORME Thanks! -- Leandro Lucarella (AKA luca) http://llucax.com.ar/ ---------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------- Spooker3 always wanted to learn russian...but learned C++ instead :) |
Copyright © 1999-2021 by the D Language Foundation