BlitzPlus Global/Local Variable Monstrosities
Moderator: Coders of Rage
- Falco Girgis
- Elysian Shadows Team
- Posts: 10294
- Joined: Thu May 20, 2004 2:04 pm
- Current Project: Elysian Shadows
- Favorite Gaming Platforms: Dreamcast, SNES, NES
- Programming Language of Choice: C/++
- Location: Studio Vorbis, AL
- Contact:
BlitzPlus Global/Local Variable Monstrosities
I was taken aback when I was looking at Arce's code for his game the other day. EVERY freaking variable was a global. I've been reprimanding him for weeks now.
I tell him to pass them into functions as arguments, but he always replies, "That's not how it works."
Is it not? Does Blitz not let you pass variables that'd be out of scope to a function as arguments? Is Arce just being a sup-par programmer?
I tell him to pass them into functions as arguments, but he always replies, "That's not how it works."
Is it not? Does Blitz not let you pass variables that'd be out of scope to a function as arguments? Is Arce just being a sup-par programmer?
- MarauderIIC
- Respected Programmer
- Posts: 3406
- Joined: Sat Jul 10, 2004 3:05 pm
- Location: Maryland, USA
It does. Here's proof - http://www.blitzbasic.com/codearcs/code ... ?code=1122
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
- Falco Girgis
- Elysian Shadows Team
- Posts: 10294
- Joined: Thu May 20, 2004 2:04 pm
- Current Project: Elysian Shadows
- Favorite Gaming Platforms: Dreamcast, SNES, NES
- Programming Language of Choice: C/++
- Location: Studio Vorbis, AL
- Contact:
- Falco Girgis
- Elysian Shadows Team
- Posts: 10294
- Joined: Thu May 20, 2004 2:04 pm
- Current Project: Elysian Shadows
- Favorite Gaming Platforms: Dreamcast, SNES, NES
- Programming Language of Choice: C/++
- Location: Studio Vorbis, AL
- Contact:
- Don Pwnious
- Chaos Rift Devotee
- Posts: 833
- Joined: Tue Jun 15, 2004 5:32 pm
- Location: on the streets wit my j23
- Contact:
- JS Lemming
- Game Developer
- Posts: 2383
- Joined: Fri May 21, 2004 4:09 pm
- Location: C:\CON\CON
- Don Pwnious
- Chaos Rift Devotee
- Posts: 833
- Joined: Tue Jun 15, 2004 5:32 pm
- Location: on the streets wit my j23
- Contact:
Funny Lemming real funny
edit: noticed i didn't change it so the other posters would know what you were talking about.
edit: noticed i didn't change it so the other posters would know what you were talking about.
Last edited by Don Pwnious on Fri Nov 05, 2004 9:46 pm, edited 1 time in total.
1/8th time- 14secs
1/8th speed - 110mph
1/8th speed - 110mph
- JS Lemming
- Game Developer
- Posts: 2383
- Joined: Fri May 21, 2004 4:09 pm
- Location: C:\CON\CON
One, you're a moron, and I won't QUITE complaining, because this whole damn topic was made to complain over MY globals.Arce quite complaining. Your whining is inevitable. you need to just stop and spell correctly. If you learned how to maybe GV wouldn't be pissed off at you much.
Two, at least I can punctuate and use proper grammar. On top of that, I, unlike you, know to capitalize the first word in a sentence.
You poor dumbass, DON'T COMPLAIN ABOUT OTHERS UNLESS YOU KNOW FOR CERTAIN YOU DON'T SHARE THEIR PROBLEM!