Post Reply 
HP50G bug ?
12-15-2014, 07:07 PM
Post: #24
RE: HP50G bug ?
(12-15-2014 05:49 PM)Claudio L. Wrote:  The next update for the 50g is called newRPL, it will still take a while longer but it will come. I followed this thread and implemented the operators the way it was expected here.
Originally, all operators on lists were passed directly to their elements and returned a list:
{ 1 2 }
{ 1 2 }
==
would return { 1 1 } (which is true for each element).
By reading this thread, I realized it's more useful if all "test" operators return a single true/false value.
So it now does the element-by-element, but then it combines all the intermediate true/false values into a single one:
{ 1 2 }
{ 1 2 }
==
returns 1 if all elements are equal. In general, all tests return true only if all elements of a list test true. This is recursive, so lists of lists work as expected.
Also, reals vs integers is not a problem:
{ 1.000 2.0 }
{ 1 2 }
==
returns 1 as expected. This is by design, as there's a single numeric type visible to the user. In this thread, the main problem was caused by a compiler optimization, which also cannot happen by design (lists cannot contain pointers, only objects).
In that regards, newRPL will be more user-friendly, as it will require less knowledge of the internal technicalities.
I'll release demo number 4 with these improvements very soon.

Claudio

I think returning 1 or 0 would at least make it consistent with the behavior in the HP48S/G series and the HP49G/G+ and HP50G (excluding bugged cases). There is also a "SAME" command, and you could always implement new "equality" commands for other types of equality.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP50G bug ? - Gilles - 12-08-2014, 12:15 PM
RE: HP50G bug ? - Gerald H - 12-08-2014, 12:41 PM
RE: HP50G bug ? - Gerald H - 12-08-2014, 12:57 PM
RE: HP50G bug ? - Gilles - 12-08-2014, 01:31 PM
RE: HP50G bug ? - Gerald H - 12-08-2014, 02:18 PM
RE: HP50G bug ? - Gilles - 12-08-2014, 06:25 PM
RE: HP50G bug ? - Han - 12-08-2014, 06:42 PM
RE: HP50G bug ? - Gerald H - 12-09-2014, 11:31 AM
RE: HP50G bug ? - Han - 12-09-2014, 06:40 PM
RE: HP50G bug ? - Claudio L. - 12-12-2014, 06:01 PM
RE: HP50G bug ? - toml_12953 - 12-12-2014, 06:47 PM
RE: HP50G bug ? - Gerald H - 12-12-2014, 07:51 PM
RE: HP50G bug ? - John R. Graham - 12-12-2014, 03:47 PM
RE: HP50G bug ? - Gerald H - 12-12-2014, 04:00 PM
RE: HP50G bug ? - John R. Graham - 12-12-2014, 04:06 PM
RE: HP50G bug ? - Gerald H - 12-12-2014, 04:13 PM
RE: HP50G bug ? - John R. Graham - 12-12-2014, 04:52 PM
RE: HP50G bug ? - Han - 12-12-2014, 04:11 PM
RE: HP50G bug ? - Gerald H - 12-12-2014, 04:32 PM
RE: HP50G bug ? - Han - 12-12-2014, 04:58 PM
RE: HP50G bug ? - John R. Graham - 12-12-2014, 08:06 PM
RE: HP50G bug ? - Han - 12-12-2014, 09:35 PM
RE: HP50G bug ? - Claudio L. - 12-15-2014, 05:49 PM
RE: HP50G bug ? - Han - 12-15-2014 07:07 PM
RE: HP50G bug ? - Claudio L. - 12-16-2014, 03:25 AM
RE: HP50G bug ? - Gilles - 12-15-2014, 09:08 PM
RE: HP50G bug ? - Claudio L. - 12-16-2014, 03:13 AM
RE: HP50G bug ? - Bruno - 12-16-2014, 09:14 AM
RE: HP50G bug ? - Claudio L. - 12-16-2014, 01:51 PM
RE: HP50G bug ? - Gerald H - 12-18-2014, 03:27 PM
RE: HP50G bug ? - Claudio L. - 12-18-2014, 03:32 PM
RE: HP50G bug ? - Gerald H - 12-18-2014, 04:09 PM
RE: HP50G bug ? - Claudio L. - 12-18-2014, 05:32 PM



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