Vectors and matrices in D
Jascha Wetzel
"[firstname]" at mainia.de
Thu Mar 15 12:25:23 PDT 2007
ok, the const part is missing, but the performance part can be dealt
with. maybe "const inout" is a worthwhile feature for future D versions.
it should have a less contradictory name, though.
Jascha Wetzel wrote:
> Bill Baxter wrote:
>> The main problem is that passing big structs by value as parameters is
>> kind of slow. And it's something you want a lot. In C++ you'd use
>> const& Vector for the argument types, but in D there's no equivalent.
>
> what about inout? it does exactly that.
> DMD will even pass single inout arguments in a register.
More information about the Digitalmars-d-learn
mailing list