[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GSoft BASIC Ramble
I found some interesting things today:
- if I turn off the debug mode (in Compile) and set the application to
S16 rather than EXE (in Link), it will go into full screen mode after
compiling. So it will work similar to how Complete Pascal works.
- however, what's the equivalent of button(0) for Orca/Pascal?
On 6月7日, 上午8时48分, Polymorph <polymorp...@hotmail.com> wrote:
> There are a number of subtle differences between Complete Pascal and
> Orca/Pascal (some of which I can't remember of the top of my head),
> but the extensions I prefer in Complete Pascal over Orca/Pascal are
> the "leave" and "exit" statements - remember "leave" exits from a
> loop, and "exit" returns from a procedure/function. Now these are
> minor annoyances and can be "simulated" via the use of labels and GOTO
> statements, but I prefer the CP way. You can also use labels and GOTO
> statements in CP too, but its nice to have them built into the
> language. Being a "modern-day" programmer, I find GOTO statements in
> high level languages particularly ugly. The beauty of "leave" and
> "quit" statements is that they are predefined and the result is
> deterministic - if you happen to place a label incorrectly in your
> code, then the result of your code becomes undeterministic and it may
> be hard to track such bugs down.
>
> I know a lot of old timers like GOTO statements even in high-level
> languages and I've heard all the merits before, but I still reckon
> they're a poor substitute for a well implemented language construct
> (for example a "leave" or "exit" statement). That's my opinion anyhow.