is it a bug or what?

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Thu Jan 22 07:21:37 PST 2015


Steven Schveighoffer:

>> scoped int[] a=new int[whatever_big_size];
>> ...
> I would not use this, I think it's scheduled for deprecation, 
> or at least the meaning is scheduled to change.

As D introduces some limited static management of memory 
ownership, the semantics of scoped arrays could be fixed.

Bye,
bearophile


More information about the Digitalmars-d mailing list