Oxygen Basic
Information => Reference => Topic started by: kryton9 on May 07, 2011, 12:12:15 AM
-
Is there a way to do namespaces in oxygen Charles? I couldn't find anything in my studies on this.
I want to develop a game engine both 2d and 3d and don't want to worry about my class and function names conflicting with others.
-
Kent,
We don't have C++ style namespaces but Oxygen has plenty of ways of avoiding name conflicts including aliases, local types, typedefs, functions and scope blocks.
Unlike c, procedures and classes and just about anything else can be localised.
In your 2d versus 3d example I would create separate 2d and 3d classes for game objects then you can use the same vocabulary for each type.
Charles
-
Just wanted to know that I wasn't missing something. Not a problem or a wish either as classes will take care of all problems.