HP49-HP50 Lists of combination
|
12-19-2022, 12:38 PM
Post: #5
|
|||
|
|||
RE: HP49-HP50 Lists of combination
From the HP 48G Series Advanced User’s Reference Manual p. 1-15:
Quote:Compiled Local Variables There's nothing magical about using ←C: it just contains the recursive program. But it allows to use itself inside the program, even though the assignment was made outside. We could have used a global variable comb instead and used that. The benefit would be that it could be easily invoked without using EVAL. However, if someone decided to use a different global variable name, the program had to be adjusted. Using a compiled local variable avoids this. Using the debugger and stepping through the code with a small example can help to understand the code. Also, I recommend reading the referenced blog post. You can also try to implement the other two solutions. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
HP49-HP50 Lists of combination - Gil - 12-18-2022, 11:01 PM
RE: HP49-HP50 Lists of combination - Thomas Klemm - 12-19-2022, 01:50 AM
RE: HP49-HP50 Lists of combination - DavidM - 12-19-2022, 02:53 AM
RE: HP49-HP50 Lists of combination - Gil - 12-19-2022, 10:38 AM
RE: HP49-HP50 Lists of combination - Thomas Klemm - 12-19-2022 12:38 PM
RE: HP49-HP50 Lists of combination - Gil - 12-19-2022, 01:42 PM
RE: HP49-HP50 Lists of combination - Thomas Klemm - 12-19-2022, 03:10 PM
RE: HP49-HP50 Lists of combination - Gil - 12-19-2022, 03:35 PM
RE: HP49-HP50 Lists of combination - Thomas Klemm - 12-19-2022, 04:03 PM
RE: HP49-HP50 Lists of combination - Werner - 12-21-2022, 01:42 PM
|
User(s) browsing this thread: 1 Guest(s)