Post Reply 
Large 50g program example
06-20-2015, 02:58 AM
Post: #10
RE: Large 50g program example
(06-19-2015 01:09 PM)Claudio L. Wrote:  You could always create one single object with local variables containing all the code, like this:

Code:

<< 
<< ...SUBROUTINE1... >>
<< ...SUBROUTINE2... >>
→ NAME1 NAME2

<< ...MAIN_PROGRAM... >>

>>

A real-world example of that method can be seen HERE, in an RPL version of the PDQ Algorithm. In both the System RPL version and the User RPL version, a "subroutine" is placed on the stack, stored in a local variable called 'tof' ("to fraction"), and then executed by name, twice, in the main body of the program. The ONLY reason I did it that way was to keep the whole thing as one program.

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Large 50g program example - Tugdual - 06-19-2015, 05:41 AM
RE: Large 50g program example - Paul Dale - 06-19-2015, 06:25 AM
RE: Large 50g program example - Tugdual - 06-19-2015, 09:50 AM
RE: Large 50g program example - Bruno - 06-19-2015, 09:59 AM
RE: Large 50g program example - BruceH - 06-24-2015, 08:15 PM
RE: Large 50g program example - Claudio L. - 06-19-2015, 01:02 PM
RE: Large 50g program example - ttw - 06-19-2015, 06:55 AM
RE: Large 50g program example - Claudio L. - 06-19-2015, 01:09 PM
RE: Large 50g program example - Tugdual - 06-19-2015, 01:36 PM
RE: Large 50g program example - Joe Horn - 06-20-2015 02:58 AM
RE: Large 50g program example - Claudio L. - 06-23-2015, 03:49 PM
RE: Large 50g program example - fyescas777 - 07-06-2015, 02:24 AM
RE: Large 50g program example - Tugdual - 07-06-2015, 10:29 AM
RE: Large 50g program example - Hlib - 08-27-2016, 08:29 AM



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