Computer Science Canada

Flexible Arrays

Author:  HyperFlexed [ Tue Nov 16, 2004 8:59 pm ]
Post subject:  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?

Author:  Mr. Glib [ Tue Nov 16, 2004 9:22 pm ]
Post subject: 

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!

code:

var yams:flexible array 1..0 of int

new yams, 2000

Author:  Cervantes [ Wed Nov 17, 2004 5:09 pm ]
Post subject: 

I just wrote 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.

Author:  HyperFlexed [ Fri Nov 19, 2004 10:42 am ]
Post subject: 

Nice.

And Glib, I did search, but I always ended up in threads with programs that were too hard to disect.


: