
-----------------------------------
HyperFlexed
Tue Nov 16, 2004 8:59 pm

Flexible Arrays
-----------------------------------
I came accross this today, and it looks very handy, this would allow me to keep my array declarations out of the code section.

How do you give an array more slots (idk the technical term)

say it is 1..0 of int, how would I make that 1..20 of int?

-----------------------------------
Mr. Glib
Tue Nov 16, 2004 9:22 pm


-----------------------------------
Hypes,

I could point out that some of the other recent threads in this forum have dealt with flexible array issues. It would be wise my friend to have a gander...but since you asked so nicey nicey!


var yams:flexible array 1..0 of int

new yams, 2000

-----------------------------------
Cervantes
Wed Nov 17, 2004 5:09 pm


-----------------------------------
I just wrote [url=http://www.compsci.ca/v2/viewtopic.php?t=6723]this tutorial.  Maybe you don't need it to know how to remove an element of an array, but it's good knowledge.  Anyways, I largely wrote the tut in response to your question.

-----------------------------------
HyperFlexed
Fri Nov 19, 2004 10:42 am


-----------------------------------
Nice.

And Glib, I did search, but I always ended up in threads with programs that were too hard to disect.
