DMD 0.175 release

Dave Dave_member at pathlink.com
Sat Nov 25 09:57:18 PST 2006


Frits van Bommel wrote:
> John Reimer wrote:
>> On Sat, 25 Nov 2006 05:14:01 -0800, Lionello Lunesu 
>> <lionello at lunesu.remove.com> wrote:
>>> Which reminds me: will "char[varsize] array_on_stack" ever be possible?
>>
>> Huh?
>>
>> void main() {
>>    char[256] p;
>> }
>>
>> Is already allocated on the stack.  What do you mean?
> 
> I think he means something more along the lines of:
> 
> void foo(size_t bar) {
>     char[bar] p;
> }

It'd be great if we could also:

void foo(size_t bar) {
     char[bar] p = void;
}

to get rid of the initialization (which can take longer than a heap allocation w/ the current GC).



More information about the Digitalmars-d-announce mailing list