So...does that insert that "black hole" functionality or does it do something else that I don't understand or what? I just want to make sure before inserting that into my code...
Sorry if this is a stupid question.
Having trouble getting a program running
Re: Having trouble getting a program running
It just doesn't remember any variables whose names begin with _.Luiji wrote:So...does that insert that "black hole" functionality or does it do something else that I don't understand or what? I just want to make sure before inserting that into my code...
Sorry if this is a stupid question.
Re: Having trouble getting a program running
Wait, if it is any variables that start with _, wouldn't this mess up Lua constants such as _VERSION?
Good bye.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Having trouble getting a program running
No, because that one's already defined.Luiji wrote:Wait, if it is any variables that start with _, wouldn't this mess up Lua constants such as _VERSION?
Two caveats:
1) It doesn't work for locals
2) You can still use rawset() to set a global starting with _
Help us help you: attach a .love.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Having trouble getting a program running
Woops. Sorry about that.Jasoco wrote:Oh, then why does kikito's code have def instead? Is that not valid code?
I allways make that mistake. I'll fix the post.
When I write def I mean function.
Who is online
Users browsing this forum: No registered users and 3 guests