Post Reply 
Suggestion for EXECON.
12-14-2014, 05:28 PM (This post was last modified: 12-14-2014 06:01 PM by Snorre.)
Post: #2
RE: Sugdestion for EXECON.
Hello JohnP,

I think your assumption about EXECON not doing symbolic calculation, i.e. not firing up the CAS, is right. You could do it by yourself:
EXECON("CAS(\"&1-&2\")",l1,l2)
or -- easier to enter --
EXECON("CAS(""&1-&2"")",l1,l2)

It seems that EXECON is just repeatedly doing an EXPR(...) on the string after substituting each &n-pattern by the corresponding list's element. So you could put nearly arbitrary content (e.g. whole program chunks) into the pattern. For example, you could print out what's going on:
EXECON("LOCAL x; IFERR x:=EXPR(""&1-&2""); THEN x:=""Nah!""; END; PRINT(""&1-&2 → ""+x); x",l1,l2);

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


Messages In This Thread
Suggestion for EXECON. - John P - 12-14-2014, 03:59 AM
RE: Sugdestion for EXECON. - Snorre - 12-14-2014 05:28 PM
RE: Sugdestion for EXECON. - John P - 12-14-2014, 09:12 PM
RE: Sugdestion for EXECON. - John P - 12-15-2014, 12:13 AM
RE: Sugdestion for EXECON. - John P - 12-15-2014, 10:57 AM
RE: Sugdestion for EXECON. - Snorre - 12-15-2014, 12:31 PM
RE: Sugdestion for EXECON. - John P - 12-15-2014, 12:57 PM
RE: Sugdestion for EXECON. - DrD - 12-15-2014, 12:36 PM
RE: Sugdestion for EXECON. - John P - 12-15-2014, 01:15 PM
RE: Sugdestion for EXECON. - John P - 12-16-2014, 07:55 AM
RE: Sugdestion for EXECON. - parisse - 12-16-2014, 08:01 AM
RE: Sugdestion for EXECON. - John P - 12-16-2014, 09:01 AM
RE: Sugdestion for EXECON. - parisse - 12-16-2014, 09:48 AM
RE: Sugdestion for EXECON. - John P - 12-16-2014, 09:36 PM
RE: Sugdestion for EXECON. - parisse - 12-17-2014, 06:54 AM
RE: Sugdestion for EXECON. - Snorre - 12-17-2014, 12:51 PM
RE: Sugdestion for EXECON. - John P - 12-17-2014, 06:05 PM
RE: Sugdestion for EXECON. - parisse - 12-17-2014, 07:14 PM
RE: Suggestion for EXECON. - John P - 12-19-2014, 10:47 PM



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