The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
How do you assign a global var in a CAS function?
11-05-2017, 11:18 PM
Post: #1
How do you assign a global var in a CAS function?
e.g., if you use EXPORT as below...

#cas
TEST(l):=
BEGIN
EXPORT MMM:=256;
RETURN l[3];
END;
#end

...it compiles OK, but when you try to run TEST(L1), it'll give a bad argument error.
However, if you comment out the EXPORT statement, it'll work fine.

How do you create a global variable in a CAS function if EXPORT doesn't work?

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


Messages In This Thread
How do you assign a global var in a CAS function? - webmasterpdx - 11-05-2017 11:18 PM



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