Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the current preferred method for enumerating the globals in a namespace?

I used to look at the source for %G for this, but lately Intersystems has stopped distributing the .INT code. I guess in theory I could use an eXecute statement in a loop to check $D on every legal global name but that's silly and unreasonably slow.

So what is currently the right way to do it?

like image 442
psr Avatar asked Feb 21 '23 02:02

psr


1 Answers

You could always use the class query in %SYS.GlobalQuery.

like image 74
Stephen Canzano Avatar answered Apr 26 '23 21:04

Stephen Canzano