ELSE IF END --> ELIF?
|
07-21-2014, 12:08 PM
(This post was last modified: 07-21-2014 12:09 PM by Joe Horn.)
Post: #1
|
|||
|
|||
ELSE IF END --> ELIF?
If you type the following code into a CAS program...
Code: (x)->BEGIN ... then exit the program editor, then edit the program again, you'll see that it has turned into this: Code: (x)->BEGIN The ELSE IF turned into ELIF, and one of the ENDs is gone. I don't see ELIF mentioned in any of the docs. Is this new in rev 6030? Borrowed syntax from C or C++ perhaps? <0|ΙΈ|0> -Joe- |
|||
07-21-2014, 07:42 PM
Post: #2
|
|||
|
|||
RE: ELSE IF END --> ELIF?
I've seen that also since rev 6030. It is weird, but seems to run fine.
|
|||
07-23-2014, 03:40 AM
Post: #3
|
|||
|
|||
RE: ELSE IF END --> ELIF?
Logically they're the same, but if you go back to edit you may get confused, because you have to change the ELIF into an ELSE IF ... and then insert an END in the correct place.
Code:
It's a construct that seems to creeping in, and I see no good reason for it. In this case, it's easy to see, but if there's over a page or two of nested code, it seems designed to invoke the propagating error corrections gods. (One of the reason I like labeled things and matching labels for their ends. Code:
) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)