Flat multi-dim arrays.

Ivan Senji ivan.senji_REMOVE_ at _THIS__gmail.com
Thu Aug 10 11:36:14 PDT 2006


Dave wrote:
> 
> What, not even a "that sucks!" from someone <g>

OK, here's one: "that sucks!"

I really miss this feature. Like Don said Norbert Nemec wrote a proposal 
quite a long time ago and I don't think it was that bad, nothing that 
Walter couldn't fix himself if he really wanted to get the feature in 
the language. If I remember correctly there was also a version 
rectangular array class that Ben wrote that could do strides and all the 
other cool stuff (if I remember correctly :))

> 
> I'm pretty sure the syntax has been proposed before, but not the same 
> implementation ideas.
> 
> I for one would like syntax like this. I like it w/ C#, and it seems a 
> relatively low hanging and juicy fruit (but Walter would have to tell us 
> how low hanging it is for sure, of course).

Me too, been missing rectangular arrays in D from the very beginning 
because they are an extremely useful data type.

D's rectangular arrays just suck, with their lengths being compile time 
constants, and not to mention other problems with static arrays.



More information about the Digitalmars-d mailing list