Signals and Slots in D

Walter Bright newshound at digitalmars.com
Thu Sep 28 21:25:43 PDT 2006


Chad J > wrote:
> Couldn't you also do weak pointers by XORing them with 0xFFFFFFFF (or, 
> better yet, const size_t weakxor = -1), then XORing again before and 
> after you need to operate on them?
> 
> Just thought I'd toss that out there.

You're very devious! I like that idea. (All you need to do is set the 
least significant bit to 1.)



More information about the Digitalmars-d mailing list