location of variable, Home or CAS?
|
02-27-2020, 06:54 PM
(This post was last modified: 02-27-2020 06:57 PM by cdmackay.)
Post: #1
|
|||
|
|||
location of variable, Home or CAS?
Is it possible, within CAS, to identify the location of a variable, whether Home or CAS?
e.g for both a:=3 (Home) and a=3 (CAS), type() gives me INT for a, and IDENT for 'a'. I know I can find them in separate areas in the Memory Manager (shift B), but I'd like to do it from a program. I'd like to enhance the little varslist utility — posted here by @dae — to indicate the location, to speed up deleting it. Of course, I could use purge(), and if it fails I know it's in Home, but… thanks! Cambridge, UK 41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot/C47 Casio, Rockwell 18R |
|||
02-28-2020, 07:27 AM
Post: #2
|
|||
|
|||
RE: location of variable, Home or CAS?
Hello,
Sorry, I never thought of that!!!! Symbols can be in LOTS of places in the system (see order of resolution)... 1) Local variables (CAS or PPL). Note that when calling the CAS from PPL, all the current PPL Local variables are accessible from the CAS (normally) 2) Current Program globals (variables declared out of the scope of functions) 3) App variables (AVars) 4) App build in variables (Xmax, Xmin...) 5) Other programs globals (exported, or not if fully qualified)... 6) Other apps globals (AVars and build in)... 7) Home and CAS global variables (including home build in: A-Z, Z0-Z9 + HVars) Kind of messy! But they all have their roles... Cyrille Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP. |
|||
02-28-2020, 10:16 PM
Post: #3
|
|||
|
|||
RE: location of variable, Home or CAS?
thanks Cyrille! I was considering only section 7, above, so thanks for the reminder
Cambridge, UK 41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot/C47 Casio, Rockwell 18R |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)