Post Reply 
Walkthrough of an RPL program for an RPN programmer
08-19-2018, 03:36 PM
Post: #9
RE: Walkthrough of an RPL program for an RPN programmer
(08-19-2018 03:13 PM)Albert Chan Wrote:  But, going back to day-of-the-week code, after -> q m K J, why create a code object ?

That's just the syntax used to create a context for local variables.

All of these variants aren't valid syntax and won't compile:
Code:
« →
»

Code:
« → a
»

Code:
« → «
  »
»

You actually need all of this:
Code:
« → a «
  »
»

This doesn't create a code object on the stack as « CROSS » did.
It just indicates the scope of the local variables using the same guillemets « and ».

HTH
Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Walkthrough of an RPL program for an RPN programmer - Thomas Klemm - 08-19-2018 03:36 PM



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