Safe cast away from immutable
Jesse Phillips via Digitalmars-d
digitalmars-d at puremagic.com
Mon Feb 8 13:49:55 PST 2016
On Monday, 8 February 2016 at 20:07:49 UTC, Iakh wrote:
> On Monday, 8 February 2016 at 19:33:54 UTC, Jesse Phillips
> wrote:
>
>> I'm pretty sure this is not safe. Works, but not safe. You
>
> So it is bug?
Yeah, I missed a couple items of your code. You'd marked the
functions @safe, and also the cast(int[]) was to convert void[]
not to cast away an immutable.
More information about the Digitalmars-d
mailing list