Signals and Slots

Sean Kelly sean at f4.ca
Thu Nov 2 10:12:31 PST 2006


Walter Bright wrote:
> http://www.digitalmars.com/d/std_signals.html
> 
> And that, hopefully, is that.

Nice work!  In skimming the code, one thing jumped out at me:

signals.d:171: len += len + 4;

I think this should be: len += 4;

Or actually: len += (void*).sizeof;

To be 64-bit safe.  Finally, is there any reason to use _d_toObject in 
this code instead of cast(Object)?  I'd think they would do the same thing?


Sean



More information about the Digitalmars-d mailing list