A bug in my code

Bill Baxter wbaxter at gmail.com
Sun Sep 7 22:42:19 PDT 2008


On Mon, Sep 8, 2008 at 2:12 PM, Manfred_Nowak <svv1999 at hotmail.com> wrote:
> Bill Baxter wrote:
>
>>   auto a = new int(void)[10];
>
> Does this imply the decision, that on upsizing no change of the init
> value is allowed?
> Otherwise how to change the init value?

Well, you really don't want to have to carry around an init value with
every array (or slice of one).  So I think it would have to be the
case that the initializer only applied to the original creation.

Maybe that means the OP would still want to roll his own non-intializing array.



--bb


More information about the Digitalmars-d-learn mailing list