Does what standard include does, but is not transitive.
There are a few annoying issues with include:
1) slows down compilation
2) naming conflicts
3) global variables (unlike functions) get included into files which don't use them + get initialized. This is pretty bad - yesterday I noticed our singleclick hook was executing around 210 redundant (out of 250 total) instructions because of included global variables initialization (31 of them).
I know this can be partially avoided by proper coding style, but its not easy with with 2500+ .src and 1000+ .inc files written by a few tens of scripters (most of them were not professional programmers) over the course of 7 years.
Private include would make things a lot easier for us.
EDIT: As was pointed out to me this is not possible since .inc files are not compiled. I'll leave it here, maybe someone can think of a solution.
private include
Archive of the older Feature Request Forum Posts
Moderator: POL Developer
Return to “Feature Request Archive”
Jump to
- Contrivance
- ↳ POL Server Website
- ↳ General Discussion
- ↳ Rants
- Novice & Help Area
- ↳ Hello world
- ↳ General Help
- ↳ Scripting Help
- ↳ Guides
- ↳ First steps
- Official POL Distribution (Distro)
- ↳ Development Discussion
- ↳ Distro Bug Reports
- ↳ Test shard
- ↳ Contribute to the distro
- ↳ Contributed Optional Packages and Scripts for the Distro
- Core Discussions
- ↳ Current development (100)
- ↳ Current stable release (099)
- ↳ Bug Reports & Feature Requests
- ↳ Solved issues
- ↳ Old requests
- ↳ Contribute to the core
- 3rd Party Scripts
- ↳ Contributed Scripts & Packages
- ↳ Complete Worlds
- 3rd Party Software
- ↳ POL Tools
- ↳ UO Tools
- ↳ Packet World
- ↳ Hosted Projects
- ↳ UOFiddler
- General Shard Development
- ↳ Miscellaneous Development Discussion
- Archive
- ↳ Older Core Versions
- ↳ POL Core 095
- ↳ General Help (095)
- ↳ POL Core 096
- ↳ General Help (096)
- ↳ POL Core 097
- ↳ Feature Request Archive
- ↳ General Help (097)
- ↳ Bug Reports (097)
- ↳ Solved Bugs (097)
- ↳ POL Core 098
- ↳ General Help (098)
- ↳ Bug Reports Archive (098)
- ↳ Old distros
- ↳ POL Core Patch Submissions
- ↳ Distro Patch Submissions