A possible solution for the opIndexXxxAssign morass

bearophile bearophileHUGS at lycos.com
Wed Oct 14 01:16:11 PDT 2009


Don:

> 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



More information about the Digitalmars-d mailing list