Post Reply 
HP 48GX IFT Error: Too Few Arguments
06-23-2021, 02:33 PM
Post: #9
RE: HP 48GX IFT Error: Too Few Arguments
(06-20-2021 09:39 PM)MNH Wrote:  
(06-19-2021 01:45 AM)Giuseppe Donnini Wrote:  IFT and IFTE were explicitly designed to allow the use of lists in lieu of programs.

I thought they were designed for programs written in stack syntax. I like their compact form.

They are. What Giuseppe is saying is that the arguments to IFT/IFTE can be in the form of lists instead of programs (they can also be null-tagged commands).

Some examples:

Code:

x > { 2 * 1 - } { 2 * 1 + } IFTE

x > :: SWAP :: DROP IFTE

The advantage is that lists and null tags execute faster and take less memory than programs. Unfortunately, RPL commands are inconsistent in terms of what procedure-class objects they will accept. DOSUBS, MAP and STREAM will accept null tags while DOLIST will not. Neither will accept lists.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP 48GX IFT Error: Too Few Arguments - MNH - 06-17-2021, 01:46 AM
RE: HP 48GX IFT Error: Too Few Arguments - John Keith - 06-23-2021 02:33 PM



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