Welcome Guest
Search
|
Active Topics
|
Log In
|
Register
ERROR
Squirrel - The Programming Language
»
General
»
The Language
»
Creating an Array Constant in Squirrel?
Creating an Array Constant in Squirrel?
Options
Previous Topic
Next Topic
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.
Back to top
WWW
User Profile
View Thanks
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
Back to top
User Profile
View Thanks
Users browsing this topic
Guest
Squirrel - The Programming Language
»
General
»
The Language
»
Creating an Array Constant in Squirrel?
Forum Jump
General
- The Language
- Embedding
- Bindings
Development
- Squirrel language review Board
- Squirrel API review Board
- Bugs
Forum
- Stuff
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.
Watch this topic
Email this topic
Print this topic
RSS Feed
Normal
Threaded
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.060 seconds.