Sign in to follow this  

Accessing global property from within script namespace

This topic is 2048 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi Andreas,

I'm having trouble getting my script to work. Whenever I try to access application-registered global property from within namespace'd method, the script fails to compile with error "'property' is not declared".
Please note that the property in question was registered without prior setDefaultNamespace call, basically it resides in global namespace. Prefixing property references with '::' doesn't work (the error message changes to "'::property' is not declared"). Edited by Andreas Jonsson

Share this post


Link to post
Share on other sites
I've fixed this bug in revision 1295.

Observe that the compiler does not yet do a recursive search in parent namespaces, so you need to explicitly name the global scope with :: in order to access the global property from the function in the namespace.

Regards,
Andreas

Share this post


Link to post
Share on other sites

This topic is 2048 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this