Dynamic Array Question
Jesse Phillips
jessekphillips+d at gmail.com
Tue Sep 20 21:09:08 PDT 2011
On Tue, 20 Sep 2011 14:28:54 -0400, Steven Schveighoffer wrote:
> You can deallocate the original array. The soon-to-be-deprecated method
> (but easiest) is:
>
> delete t;
>
> To avoid having to change your other code, I'd do this:
>
> wchar[] t = ...;
> scope(exit) delete t; // add this line to the end of the function (after
> returning)
Unless I missed something, delete is being removed from the language.
More information about the Digitalmars-d-learn
mailing list