Search the Community
Showing results for tags 'namespace'.
-
hi, I added a complicated script code to unigine editor. At last, I got a wrong code "editor/editor.cpp:328:NameSpace::NameSpace(): maximum namespace is 65535". What's wrong with my code? And how should I do to solve it? Thanks.
-
Hi, we have been using the 2011-12-28 version of the sdk until lately. We have been encountering some issues with namespacing from within the UnigineScripts with the newer version (2012-04-11, which we are aware is not the latest). 1. using keyword can only be used if the code is encapsulated within a namespace also. with error (Interpreter::parse_prototype():can't find "myNamespace::subNamespace" namespace): using myNamespace::subNamespace; MyObject object; int init() { object = new MyObject(); return 1; } without error: namespace World { using myNamespace::subNamespace; MyObject object; int init() { object = new MyObject(); return 1; } } 2. the second code snippet would work but the interpreter cannot properly parse the world init because it is now contained within a namespace, instead we have to do this: int init() { return World::init(); } namespace World { using myNamespace::subNamespace; MyObject object; int init() { object = new MyObject(); return 1; } } Is this intended behavior?
- 3 replies
-
- namespace
- encapsulation
-
(and 1 more)
Tagged with: