Large 50g program example
|
06-20-2015, 04:51 AM
Post: #11
|
|||
|
|||
RE: Large 50g program example
(06-19-2015 01:09 PM)Claudio L. Wrote: You could always create one single object with local variables containing all the code, like this: Compare this program to the 3rd program of this previous post which uses directories: Code: \<< Quote:Local names are evaluated differently from global names. When a global name is evaluated, the object stored in the corresponding variable is itself evaluated.- HP 48G Series User's Guide p. 29-17 Thus EVAL is sprinkled all over the program. Moreover since UNROT is used in the other subroutines it has to be defined in a surrounding local variable structure. But I doubt that anybody is going through this hassle to define a new word from only two commands when it needs two commands to execute and even uses more letters to type. In this case I tend to develop the program using global variables in a separate directory and inline the code once it is stable. You can still use comments to structure the program: Code: \<< Cheers Thomas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)