escaping pointer to scope local array: bug or not?

Jarrett Billingsley jarrett.billingsley at gmail.com
Mon Aug 17 09:53:36 PDT 2009


On Sun, Aug 16, 2009 at 1:13 PM, HOSOKAWA Kenchi<hskwk at inter7.jp> wrote:
>        scope auto a = new int[1];

Just for future reference, "scope auto" is redundant.  "auto" does not
mean "infer the type"; the absence of a type is enough to do that.
"auto" is just the default storage class.  "scope a = new int[1];"
will work fine (as will "const a = 4;" "static a = 5;" etc.).



More information about the Digitalmars-d mailing list