Post Reply 
Create function by program and store as variable ?
09-26-2015, 04:25 PM (This post was last modified: 09-26-2015 04:28 PM by xset.)
Post: #4
RE: Create function by program and store as variable ?
(09-26-2015 03:14 PM)ji3m Wrote:  What is the object you did create called.?
How do you execute it?

I've put code in string and made EVAL(EXPR(str))
I also was able to create program object in CAS window.
(x)->BEGIN PRINT(x); END;
Ans->MyFun
Eval(MyFun(5)) gives 5 to terminal.

and store it to my variable. It does not work in programming mode (????).

(09-26-2015 03:14 PM)ji3m Wrote:  BTW how do you know about what you did do. I cant find any
Advanced docs about ppl which mention any of this.

It contained PRINT which left a trail in the terminal.

(09-26-2015 03:14 PM)ji3m Wrote:  Does PPL mimic some othe language everyone
knows about?

It definitely contains some properties of functional languages.

For other questions better ask HP developers.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Create function by program and store as variable ? - xset - 09-26-2015 04:25 PM



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