Is the following code legal?

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Tue Nov 8 06:50:48 PST 2016


On 11/8/16 7:58 AM, Shachar Shemesh wrote:
> SomeStruct[int] aa;
>
> ....
>
> SomeStruct* aap = v in aa;
> aa.remove(v);
> writeln(aap);
>

It currently will work. At some point in the past, this did NOT work, as 
we were proactively freeing the data.

I don't know if the policy is that this is officially supported or not. 
Hence, I don't know the answer to the question "is it legal".

-Steve


More information about the Digitalmars-d mailing list