www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: A possible solution for the opIndexXxxAssign morass


 BTW we need to deal with slices as well as indexes. I think the way to 
 do this is to make a slice into a type of index.

Such slice also needs a way to specify the end of the enclosing interval, the $ syntax. Slice may enjoy a lot a third optional argument (default = 1), that represents the stride. (In the Chapel language all this is generalized into the concept of Domain, that I think is a good language feature to introduce in D). Bye, bearophile
Oct 14 2009