Dealing with the interior pointers bug
Boris-Barboris via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jun 22 12:21:19 PDT 2017
On Thursday, 22 June 2017 at 19:11:19 UTC, Cym13 wrote:
> Here it's the programmer's fault really. You should never use
> casts in normal code, cast is the ultimate switch to say "Look,
> I know what I'm doing, so disable all safety, don't try to make
> sense of it, and let me do my thing. If I'm telling you it's a
> cat, then it is dammit.". You can't blame the type system not
> to do something coherent here, you explicitely went out of your
> way to lie to that very same type system in the most unsafe way
> possible.
We're on the same page, I just think that ability to lie is part
of the type system, that's all.
More information about the Digitalmars-d-learn
mailing list