'::' Global Namespace To Avoid Name Collision With PB
Posted: Wed Sep 04, 2013 4:40 pm
Hello,
It could be very usefull to have an option to have all the PureBasic exposed constants, prototypes, etc.. accesssible only under the 'Global' namespace '::'.
For instance to access the #Red constant - with this option activated - we would use:
The reason for this is that while Modules are great to avoid collisions from user generated code, it does not prevent collision with PureBasic exposed items (when importing libraries, for instance).
Cheers,
Guy.
It could be very usefull to have an option to have all the PureBasic exposed constants, prototypes, etc.. accesssible only under the 'Global' namespace '::'.
For instance to access the #Red constant - with this option activated - we would use:
Code: Select all
Debug ::#Red
Cheers,
Guy.