Template class with dispatched properties

Ross Hays throwaway at email.net
Thu Nov 7 20:55:54 PST 2013


And let me say that I really do like that this works in D. I 
can't imagine doing anything like this in C++ (which is what I 
used primarily in the past).

The only reason I joke about it being useless is it really only 
supports vectors of length 2 or 3 (technically 1 as well but that 
is not really a vector) and at that point I am tempted to say it 
is more efficient to just make a Vector2!float class or something 
of the sorts.


More information about the Digitalmars-d-learn mailing list