A bug in my code

Jarrett Billingsley jarrett.billingsley at gmail.com
Sun Sep 7 15:01:09 PDT 2008


On Sun, Sep 7, 2008 at 5:58 PM, Bill Baxter <wbaxter at gmail.com> wrote:
> On Mon, Sep 8, 2008 at 6:52 AM, bearophile <bearophileHUGS at lycos.com> wrote:
>> Bill Baxter:
>>> At some point you used to be able to create variables using an "=void"
>>> initializer to prevent the automatic initialization.  Is that no
>>> longer the case?
>>
>> I think the = void can be used with static arrays/variables, but not with dynamic arrays.
>
> If there is no way to do the same thing with dynamic arrays, I think
> that's a hole in the language.
>
> --bb
>

There's no way to do it with any heap-allocated value, which does seem
a bit like a hole to me.


More information about the Digitalmars-d-learn mailing list