Author Topic: Namespace?  (Read 2996 times)

0 Members and 1 Guest are viewing this topic.

kryton9

  • Guest
Namespace?
« 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.

Charles Pegge

  • Guest
Re: Namespace?
« Reply #1 on: May 07, 2011, 05:57:32 AM »
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

kryton9

  • Guest
Re: Namespace?
« Reply #2 on: May 07, 2011, 12:44:46 PM »
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.