Post Reply 
UserRPL HP 50G
06-30-2014, 05:55 PM
Post: #5
RE: UserRPL HP 50G
(06-30-2014 04:00 PM)Mikkiz Wrote:  the \\ are only comments for the forum, that people understand what it does if they want to.

I understand that you intend for those lines to be comments, but the 50g doesn't recognize "//" as a comment indicator. As a result, the 50g will attempt to interpret those lines as RPL code. It's possible that HPUserEdit doesn't pass those lines along to the calculator, though. I'm not familiar with HPUserEdit, so I can't say with certainty how it treats those lines.

(06-30-2014 04:00 PM)Mikkiz Wrote:  i thought the ? belongs to the code, its at least how i learned it.

Many of those ?s are actually supposed to be single quotes, such as in these lines:
Code:
xf ?xi? STO F ?T? STO+
xd ?xi? STO F ?T? STO+

They should actually be coded as follows:
Code:
xf 'xi' STO F 'T' STO+
xd 'xi' STO F 'T' STO+

There's other places where ?s show up, though, and it's apparent that they aren't supposed to be single quotes. Your program will have syntax errors until you remove all the ?s and replace them with the appropriate substitutions.

Generally speaking, you're better off when you use the HP "tri-graphs" in your code instead of using special characters. So instead of using "«" and "»", you would use "\<<" and "\>>". Also in your code, you have:
Code:
OBJ-> DROP
...which will definitely create an error. You should use
Code:
OBJ\-> DROP
instead.

Likewise for
Code:
->
you would use
Code:
\->
The tri-graphs are converted to single characters as appropriate when the 50g compiles the program.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
UserRPL HP 50G - Mikkiz - 06-29-2014, 07:01 PM
RE: UserRPL HP 50G - DavidM - 06-29-2014, 09:20 PM
RE: UserRPL HP 50G - Mikkiz - 06-30-2014, 04:00 PM
RE: UserRPL HP 50G - HP67 - 06-30-2014, 04:23 PM
RE: UserRPL HP 50G - DavidM - 06-30-2014 05:55 PM
RE: UserRPL HP 50G - HP67 - 06-30-2014, 06:31 PM
RE: UserRPL HP 50G - DavidM - 06-30-2014, 06:59 PM
RE: UserRPL HP 50G - HP67 - 07-01-2014, 06:27 AM
RE: UserRPL HP 50G - CosmicTruth - 07-01-2014, 12:26 AM
RE: UserRPL HP 50G - Mikkiz - 07-01-2014, 05:25 PM
RE: UserRPL HP 50G - HP67 - 07-01-2014, 05:35 PM
RE: UserRPL HP 50G - DavidM - 07-01-2014, 08:02 PM
RE: UserRPL HP 50G - Mikkiz - 07-02-2014, 07:44 PM
RE: UserRPL HP 50G - HP67 - 07-03-2014, 06:29 AM
RE: UserRPL HP 50G - Joe Horn - 07-03-2014, 08:13 AM
RE: UserRPL HP 50G - Voldemar - 07-03-2014, 11:07 AM
RE: UserRPL HP 50G - HP67 - 07-03-2014, 11:18 AM
RE: UserRPL HP 50G - HP67 - 07-03-2014, 11:15 AM
RE: UserRPL HP 50G - CosmicTruth - 07-04-2014, 12:32 AM
RE: UserRPL HP 50G - Brad Barton - 07-03-2014, 01:57 AM



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