Presenting the Turducken Type Technique: Certified Evil™
FeepingCreature
feepingcreature at gmail.de
Wed Jul 11 18:48:10 UTC 2018
Oh yeah, two notes.
First: you might say "it's easy to be un at safe if you use
@trusted." However, the @trusted part is both well-defined and
positively pedestrian, since we are either targeting default
initialized memory or just ran destroy() on it (which by the way
is @safe) so really, if you're holding a reference past that
*you're* the one doing undefined things.
Second: since I forgot, credit @n8sh on github for pointing me at
the union technique, though the blame for the current incarnation
of the trick is all mine.
More information about the Digitalmars-d
mailing list