Matrix-type-friendly syntax and more
Norbert Nemec
Norbert at Nemec-online.de
Tue Oct 11 14:29:44 PDT 2011
On 11.10.2011 09:05, Don wrote:
> On 10.10.2011 20:03, Norbert Nemec wrote:
>>
>> Inefficient?! For multidimensional arrays, all but one dimension have
>> non-trivial, runtime-dependent strides anyway.
>
> The problem is with built-in arrays.
Sure. For one-dimensional arrays, the overhead would be significant and
the use would be limited to exotic cases.
>> Anyway, the expressiveness gained by strides is significant and the
>> effort to allow it in the language is minimal.
>
> That's true, IF you are happy to have it as a feature which can only be
> used in user-defined types. If you want it apply to built-in arrays as
> well, the effort is immense.
Indeed, I am interested in this feature purely for defining
multidimensional arrays for use in numerics.
More information about the Digitalmars-d
mailing list