The GetGlobalDest method of %SYS.Namespace is useful in answering your questions, and it doesn't require a switch to %SYS.
For #1, ask it where ^ROUTINE is mapped to.
For #2, don't specify any global name.
For #3, compare the result for your global with the result for #2.
I previously wrote about this method here:
https://community.intersystems.com/post/how-determine-if-class-mapped-e…
- Log in to post comments