Post Reply 
Simple programming help with the Prime
06-09-2014, 04:39 PM
Post: #2
RE: Simple programming help with the Prime
There are currently no functions callable from PPL that will manipulate the stack. However, parameters to programs can be pulled from the stack. The syntax on the entry line is
Code:
function_name(n)
where "n" is the number of arguments that should be popped off the stack and provided to the program. The return value from the program also ends up on the stack. If you want to return multiple values, the only option today is to return a list.

Lack of integration between PPL and the stack is somewhat dismaying to me. In addition, the fact that the type system can't determine on its own how many arguments to pop is yet another symptom of incomplete integration.

- John
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Simple programming help with the Prime - John R. Graham - 06-09-2014 04:39 PM



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