[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Advanced Programming Structures
Rubywand wrote:
>
> ....
>
> Besides, Applesoft BASIC does not have all that many control structures;
> so, some fudging on 'good practice' rules is unavoidable.
Even OSS BASIC XE was missing some very useful commands.
Changing the loop index within the loop in order to force (or avoid) an
> exit at the NEXT test is a fairly common practice. On the other hand, exiting a
> FOR-NEXT via an IF-THEN GOTO is common, too. In either case, you have something
> of a loop violation.
It's only a violation IF you don't use a POP command to clear the stack.
> This way of extending the use of FOR-NEXT is kind of neat, at least as an
> option to consider. You will lose a bit of speed and compactness; but, you may
> gain improved modularity and easier to follow code.
>
> Rubywand
--
Robert S Ely - aka - Eli-the-Iceman
rsely74@optonline.net
rsely@dhs.state.nj.us
rsely74@hotmail.com
hsrelyy@vm.state.nj.us
ICQ#: 33390750
AOL-IM: Eliice1954
Work Phone:1-609-894-4057
Work FAX:1-609-894-4048