What's left for 1.0?
Sean Kelly
sean at f4.ca
Sat Nov 18 08:24:06 PST 2006
Bill Baxter wrote:
> Bill Baxter wrote:
>> So, what's left on everyone's lists for D1.0 must-have features?
>
> For a language that has unheard of features like variadic template
> support (!) one thing that seems oddly immature to me is support for
> static initializers. Things like:
>
> * No way to initialize a static array without counting elements
> static byte[???] imageData = [...]; // i hope you like counting!
Maybe:
static imageData = [cast(byte) ...];
> * No way to initialize a dynamic array with a known length
> byte[] imageData; imageData.length = 5; // two steps - meh
byte[] imageData = new byte[5];
> * No way to initialize array of strings
> char[][] list = ["eggs","bacon","milk","break"]; //uh uh
>
> * No way to initialize non-static struct
> Point p = { x:1.0, y:2.0 }; // nope...not static
>
> * No way to initialize associative array
> char[int] strTable = {"hello":5, "hi":2, "greetings":9}; // no way
The rest would be nice to have, though.
Sean
More information about the Digitalmars-d
mailing list