Post Reply 
DB48X: HP48-like RPL implementation for DM42
07-22-2023, 03:44 PM (This post was last modified: 07-22-2023 03:45 PM by c3d.)
Post: #37
RE: DB48X: HP48-like RPL implementation for DM42
(07-22-2023 11:56 AM)Gilles Wrote:  
(07-19-2023 12:41 PM)Claudio L. Wrote:  I like this, but wouldn't it be better to perhaps name it 'foreach'? so as to not confuse the user with the usage of for.

I vote for "foreach". But in this case :
'X' { 1 2 3 45 } ADD ΣLIST does the job (or + in RPL vs ADD newRPL)
and is more in the "spirit" of RPL imho

Regarding foreach, I don't like it. RPL tends to overload operators when there is no ambiguity, and I see no ambiguity there. There is already a precedent for operators that take different number of arguments as input, e.g. DOSUBS.

Regarding 'X' { 1 2 3 45 } ADD ΣLIST, this is clever, but is obviously much less general.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: DB48X: HP48-like RPL implementation for DM42 - c3d - 07-22-2023 03:44 PM
DB48X v0.4.8 is out - c3d - 10-22-2023, 11:31 PM
Release v0.5.0: Statistics and flags - c3d - 11-20-2023, 08:57 AM
v0.6.5: Minor bug fixes - c3d - 02-11-2024, 11:23 PM
Release 0.7.1 "Whip" - Bug fixes - c3d - 03-04-2024, 12:46 AM
DB48X v0.7.4 release is out - c3d - 04-14-2024, 03:05 PM
DB48X v0.7.6: Solving menu - c3d - 05-13-2024, 12:04 AM
DB48X v0.7.7: Units in solver - c3d - 06-02-2024, 11:36 PM



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