It is a bug ?

Jarrett Billingsley jarrett.billingsley at gmail.com
Wed May 6 08:33:03 PDT 2009


On Wed, May 6, 2009 at 10:06 AM, Du Liang <duliang.21 at 163.com> wrote:

>        int[] arrB = [2,2,2]; // arrB is static in[]  or bug ?

Declaring the variable like this uses a single array for all instances
of AB.  You should initialize it in this() instead, or put "arrB =
arrB.dup;" in this().



More information about the Digitalmars-d mailing list