[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GSoft BASIC Ramble



On Jun 8, 7:49 pm, limtc <thyech...@gmail.com> wrote:
> I am so used to "leave" and "exit" that I am not aware that it is not
> part of Standard Pascal!
>
> I hate "goto" - sign. I assume I have to relearn what I learned in
> Pascal class - use a repeat/while loop with a boolean flag... but this
> seem to clunky compared to "leave" and "exit". You really sure there
> is no other way...?

Well, I searched through the Orca/Pascal manual and could see no
equivalents - there is definitely no "leave" and "exit" statements in
Orca/Pascal. I'm pretty sure the manual suggests the usage of GOTO
statements to conditionally leave a loop.

When converting my Complete Pascal source code into Orca/Pascal, I had
to search for all instances of these and replace them with a GOTO and
a label (which I do not like). But even with these annoyances, I still
got used to doing it that way (even if I don't like it).

Mike W's response above seems to verify that Orca/Pascal has no
"leave" and "exit" statements.

Cheers,
Mike