Is D 0.163 D 1.0?

Chris Nicholson-Sauls ibisbasenji at gmail.com
Sun Jul 23 11:26:32 PDT 2006


Paolo Invernizzi wrote:
> Please, another last effort... array initializers.
> 
> My 2c...
> 
> ---
> Paolo
> 
> Walter Bright wrote:
> 
>> I think the title says it all.

I agree.  Although, for the moment, we do have this solution:
# T[] array (T) (T[] args ...) { return args.dup; }
#
# int foo = array!(int)(1, 2, 3);

I'd say this (along with some other things) should get moved into a 'std.array' module at 
the very least, if we're going 1.0 now.

-- Chris Nicholson-Sauls



More information about the Digitalmars-d mailing list