Post Reply 
Emulator program whitespace
12-24-2013, 04:24 AM
Post: #6
RE: Emulator program whitespace
(12-20-2013 09:32 AM)cyrille de brĂ©bisson Wrote:  hello,

there is no check for END; to be the end of the program... you can add as many extra lines (or comments) as you want...

I imagine that a bad unicode character was there...


This needs some major clarification because people have different notions of what "program" means. It is true that there is no check for END; to be the end of a source file (which, on the HP Prime, is called a "program"). The problem with calling the source file a "program" is that a source file can generate many new "commands" of the form:

  // code for COMMAND()
and a lot of people consider these "commands" as individual programs -- especially if each is coded to perform different tasks.

On the other hand, each "command" block (what I personally would have called a "program") MUST NECESSARILY end with END; -- otherwise a syntax error will be generated.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
Emulator program whitespace - Bob Frazee - 12-19-2013, 09:58 PM
RE: Emulator program whitespace - Han - 12-24-2013 04:24 AM
RE: Emulator program whitespace - eried - 12-24-2013, 07:01 AM

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