Casting Pointers?
Dicebot via Digitalmars-d
digitalmars-d at puremagic.com
Thu May 12 02:38:27 PDT 2016
On Thursday, 12 May 2016 at 09:33:54 UTC, Dicebot wrote:
> On Thursday, 12 May 2016 at 08:41:25 UTC, John Burton wrote:
>> Is this legal / valid in D and if not what is the appropriate
>> way to efficiently access data like this?
>
> We rely on this cast to be legal and well-defined in a lot of
> Sociomantic code, banning would be a real disaster :X
(most common case is casting between `char[]` and `struct S {
char[]; }`)
More information about the Digitalmars-d
mailing list