Typecasting delegates

Mike B Johnson via Digitalmars-d digitalmars-d at puremagic.com
Sat Jun 3 01:59:47 PDT 2017


On Friday, 2 June 2017 at 21:42:57 UTC, Moritz Maxeiner wrote:
> On Friday, 2 June 2017 at 21:14:29 UTC, Seiji Emery wrote:
>> [...] assume that they're implemented as a pair of pointers;

>> Ah, and uh... one last thing. What's the worst that could 
>> happen from calling a `ref Foo` signature through a void* 
>> pointer?
>
> Undefined behaviour.
>

His computer could expode! Or it could trigger a black hole near 
Alpha Centauri... You never know!



More information about the Digitalmars-d mailing list