Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic General > Re: BBC BASIC f...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 22 Topic 619 of 702
Post > Topic >>

Re: BBC BASIC for Windows version 5.70a released

by "Judson McClendon" <judmc@[EMAIL PROTECTED] > Sep 3, 2007 at 08:50 AM

<news@[EMAIL PROTECTED]
> wrote:
> Happy Trails <nom...@[EMAIL PROTECTED]
> wrote:
>> Does BBCB allow labels instead of line numbers anywhere at all, or
>> only not as the object of a GOTO?
>
> The original BBC BASIC did not allow labels of any kind; destinations
> of GOTO, GOSUB, RESTORE etc. had to be line numbers.  However
> since all the necessary control structures were present to write
programs
> entirely without GOTOs, one was encouraged to do that.  I never use
> GOTOs in any of my programs, and I have always felt that providing
> labels would encourage poor program structure.
>
> However there is one respect in which the absence of labels is
> limiting, and that is when converting programs from other dialects of
> BASIC.  Replacing the labels with line numbers is undesirable, and
> rewriting the code to eliminate them altogether is extra effort.
> Therefore in fact you *can* use labels in recent versions of BBC BASIC
> for Windows but the implementation is minimal and not intended for use
> in new programs.

Richard, surely you aren't saying that functions and subroutines can only
have numbers instead of labels? Though I understand your objection to
using goto, if someone is going to use goto anyway, wouldn't "goto
<meaningful-label>" be better than "goto <meaningless-number>"?

I couldn't remember the last time I used goto in a BASIC program, but
your statement about not using goto for 25 years prompted me to search
all my BASIC code for goto's. The only goto's I could find in programs
since the 1970's were to handle error or termination situations where
there
was no better syntax available, such as "ON ERROR GOTO". One was
to exit from a deeply nested FOR/NEXT structure.
-- 
Judson McClendon      judmc@[EMAIL PROTECTED]
 (remove zero)
Sun Valley Systems     http://sunvaley.com
"For God so loved the world that He gave His only begotten Son, that
whoever believes in Him should not perish but have everlasting life."
 




 22 Posts in Topic:
[ANN] BBC BASIC for Windows version 5.70a released
"news@[EMAIL PROTECT  2007-09-02 04:41:08 
Re: [ANN] BBC BASIC for Windows version 5.70a released
Happy Trails <nomail@[  2007-09-02 10:02:20 
Re: BBC BASIC for Windows version 5.70a released
"news@[EMAIL PROTECT  2007-09-02 09:34:09 
Re: BBC BASIC for Windows version 5.70a released
Happy Trails <nomail@[  2007-09-02 17:21:00 
Re: BBC BASIC for Windows version 5.70a released
"Judson McClendon&qu  2007-09-03 08:50:49 
Re: BBC BASIC for Windows version 5.70a released
"news@[EMAIL PROTECT  2007-09-02 15:23:37 
Re: BBC BASIC for Windows version 5.70a released
Happy Trails <nomail@[  2007-09-02 20:08:14 
Re: BBC BASIC for Windows version 5.70a released
"news@[EMAIL PROTECT  2007-09-03 01:40:42 
Re: BBC BASIC for Windows version 5.70a released
ppnerkDELETETHIS@[EMAIL P  2007-09-03 11:29:28 
Re: BBC BASIC for Windows version 5.70a released
"news@[EMAIL PROTECT  2007-09-03 05:05:33 
Re: BBC BASIC for Windows version 5.70a released
"news@[EMAIL PROTECT  2007-09-03 08:45:35 
Re: BBC BASIC for Windows version 5.70a released
"Judson McClendon&qu  2007-09-03 13:48:03 
Re: BBC BASIC for Windows version 5.70a released
"R.Nicholson" &  2007-09-03 11:16:08 
Re: BBC BASIC for Windows version 5.70a released
"Tom Lake" <  2007-09-03 18:37:13 
Re: BBC BASIC for Windows version 5.70a released
"R.Nicholson" &  2007-09-03 11:25:22 
Re: BBC BASIC for Windows version 5.70a released
"R.Nicholson" &  2007-09-03 12:09:41 
Re: BBC BASIC for Windows version 5.70a released
"news@[EMAIL PROTECT  2007-09-03 13:14:01 
Re: BBC BASIC for Windows version 5.70a released
James <JT@[EMAIL PROTE  2007-09-04 00:31:44 
Re: BBC BASIC for Windows version 5.70a released
rhnlogic <rhnlogic@[EM  2007-09-03 22:33:36 
Re: BBC BASIC for Windows version 5.70a released
"news@[EMAIL PROTECT  2007-09-04 01:18:19 
Re: BBC BASIC for Windows version 5.70a released
"news@[EMAIL PROTECT  2007-09-04 07:38:50 
Re: BBC BASIC for Windows version 5.70a released
"R.Nicholson" &  2007-09-04 10:22:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 19:50:23 CST 2008.