Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing global objects without Global prefix #7

Open
admo opened this issue Jan 21, 2019 · 2 comments
Open

Accessing global objects without Global prefix #7

admo opened this issue Jan 21, 2019 · 2 comments

Comments

@admo
Copy link

admo commented Jan 21, 2019

Hi!
A long time ago in a galaxy far, far away... when I declared class within Global, then I could access this class without Global prefix:

{
class Global.MyClass
{
  var myVariable = true;
};
}|;

MyClass;

Now, with Urbi 3.0.0 I have to put Global. prefix before object name.
I have to change this behavior due to my legacy software.
Could someone help me to find implementation of this behavior in the source code, that I could change it?

@mnottale
Copy link
Collaborator

Urbi 3 introduces packages, cf . http://urbi.jcbaillie.net/doc/migration-from-urbiscript-2-to-urbiscript-3.html#x26-17200017.3

So no need to hack the source code, an import Global.*; should do the trick.

@admo
Copy link
Author

admo commented Jan 22, 2019

@mnottale Thank you. It works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants