HP-71B BASIC Question
|
03-16-2021, 09:34 AM
Post: #4
|
|||
|
|||
RE: HP-71B BASIC Question
(03-16-2021 12:53 AM)Sylvain Cote Wrote: edit: I am searching for something equivalent to the C++ scoping "::" operator that would allow me to call the UDF defined in main space from a sub-routine space Something equivalent exists for the CALL keyword, you can write: CALL MYSUB IN MYFILE to call the subprogram MYSUB in the file MYFILE. But not for UDFs. They are local to the current environment (where they are defined) in the Series 70/80 "Technical BASIC". The UDF implementation is a major difference relative to the HP BASIC in Series 200/300 ("RMB"), where the UDF are similar to subprograms, with their own environment, and can be called from any subprogram. Drawback of this approach is that they can't access the global variables of the environment that uses them, as is possible in the Series 70/80. J-F |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)