The Matrix to end all Matrix classes (Let's dream!)
Ary Borenszweig
ary at esperanto.org.ar
Tue Nov 20 18:50:03 PST 2007
Robert DaSilva escribió:
> Bill Baxter wrote:
>> Dan wrote:
>>> D's slices already perform 90% of the stuff we want in order to
>>> achieve a Matrix. You more or less just want a standard library that
>>> lets you do it, right?
>> I'd say it lets you do about 50% of the stuff you want for a Matrix, but
>> putting a single percentage figure on it is not really possible, because
>> different features have different importance to different users.
>>
>> In particular:
>> 1) $ can't be used for opIndex or opSlice in user-classes.
>
> I think there's a proposal for that already.
>
>> 2) D lacks a clean syntax for slices of multiple dimensions. opSlice
>> calls must have one and only one ".."
>
> Can you propose a syntax for that?
[1 .. 2, 3 .. 4]
More information about the Digitalmars-d
mailing list