Arrays

Patrick dude at dude.com
Fri Mar 16 10:24:42 PDT 2007


I have a list of vectors and I want to be able to add a vector through a function like this:
 
float[3] giveVector();
-----
float[][3] vectorList;
vectorList ~= giveVector();
-----

Any ideas on how to implement this? It doesnt really feel right to wrap the vector up in a class or struct...


More information about the Digitalmars-d-learn mailing list