YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Creating an Array Constant in Squirrel?
martinexp
#1 Posted : Saturday, June 02, 2012 12:59:01 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/2/2012(UTC)
Posts: 1
Location: USA

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Is there any way to define array constants in squirrel? I've had to resort to using global arrays for holding a bunch of values, but it feels kind of... dirty to have to resort to that.

Besides that, I would very much like to extend my thanks to Alberto for such a wonderful little language.
fagiano
#2 Posted : Saturday, June 02, 2012 8:30:22 PM(UTC)
Rank: Advanced Member

Groups: Registered, Administrators
Joined: 6/11/2005(UTC)
Posts: 825

Thanks: 0 times
Was thanked: 36 time(s) in 29 post(s)

getconsttable()["myconstarray"] <- [1,2,3,4,5,6,7,8,9]

ciao
Alberto
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Clean Slate theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.059 seconds.