PureBasic Forums - English
Skip to content
Search
Advanced search
Search
Unanswered topics
Active topics
Search
Home
Board index
PureBasic
General Discussion
Why are constants global?
Everything else that doesn't fall into one of the other PB categories.
Post Reply
Print view
Search
Advanced search
Previous
1
2
electrochrisso
Addict
Posts:
989
Joined:
Mon May 14, 2007 2:13 am
Location:
Darling River
Quote
Post
by
electrochrisso
»
Sun Oct 07, 2007 10:40 am
Constants should be defined before main program execution. Use static for local constants in your procedures, should work ok if you keep track of them.
Top
Post Reply
Print view
Display:
All posts
1 day
7 days
2 weeks
1 month
3 months
6 months
1 year
Sort by:
Author
Post time
Subject
Direction:
Ascending
Descending
Previous
1
2
Return to “General Discussion”
Jump to
PureBasic
↳ Coding Questions
↳ Game Programming
↳ 3D Programming
↳ Assembly and C Programming in PureBasic
↳ The PureBasic Editor
↳ The PureBasic Form Designer
↳ General Discussion
↳ Feature Requests and Wishlists
↳ Tricks 'n' Tips
Bug Reports
↳ Bugs - Windows
↳ Bugs - Linux
↳ Bugs - Mac OSX
↳ Bugs - C backend
↳ Bugs - 3D Engine
↳ Bugs - IDE
↳ Bugs - Documentation
OS Specific
↳ AmigaOS
↳ Linux
↳ Windows
↳ Mac OSX
↳ Raspberry PI
Miscellaneous
↳ Announcement
↳ Off Topic
Showcase
↳ Applications - Feedback and Discussion
↳ PureFORM & JaPBe
↳ TailBite