Hi 4tH-ers!
I'm polishing up my C++ knowledge and bumped into Vectors. Now, we already got dynamic arrays, so I decided to add an OOP wrapper around it - which technically means we got some kind of OOP arrays.
We already got dynamic strings, so..
When creating a vector you can initialize it with values (the Forth way). If you don't want to initialize the vector you have to supply "0" (meaning: no values). You can grow or shrink a vector, get and set values, push and pop values and get the current size.
No, it's not the full range of methods a C++ vector offers, but I think it covers most of the basics. You can always subclass it.
Gee, I'm really beginning to talk like a real OOP junkie..
Hans Bezemer