Post Reply 
(HP48) Local variable limit
11-02-2017, 09:02 PM
Post: #13
RE: (HP48) Local variable limit
RPL's eagerness to create local variables with any name at all, including reserved words, can lead to truly hilarious code.

For example, the following program takes any whole number as its input, and returns the number of bits required to express it in binary. But just LOOK at that code! Big Grin

Code:
<< 0 1 ROT FOR SWAP 1 + SWAP STEP >>

<0|ΙΈ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(HP48) Local variable limit - Brad Barton - 10-30-2017, 03:37 AM
RE: (HP48) Local variable limit - Joe Horn - 10-30-2017, 03:58 AM
RE: (HP48) Local variable limit - Joe Horn - 11-02-2017, 05:15 AM
RE: (HP48) Local variable limit - DavidM - 11-02-2017, 02:27 PM
RE: (HP48) Local variable limit - DavidM - 11-02-2017, 05:05 PM
RE: (HP48) Local variable limit - Gerald H - 11-02-2017, 05:04 PM
RE: (HP48) Local variable limit - Gerald H - 11-02-2017, 05:42 PM
RE: (HP48) Local variable limit - Gerald H - 11-02-2017, 07:00 PM
RE: (HP48) Local variable limit - Gerald H - 11-02-2017, 07:05 PM
RE: (HP48) Local variable limit - Joe Horn - 11-02-2017 09:02 PM
RE: (HP48) Local variable limit - Gerald H - 11-03-2017, 06:43 AM



User(s) browsing this thread: 1 Guest(s)