To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 4085
4084  |  4086
Subject: 
Re: LDS ver 0.28
Newsgroups: 
lugnet.cad.dev
Date: 
Fri, 25 Feb 2000 17:29:40 GMT
Viewed: 
803 times
  
In lugnet.cad, Tore Eriksson wrote:

GOTO was very easy to program. :o)

Double-:)

A little more seriously now: I think it belongs to the BASIC-like syntax I have chosen. Especially in IF statements.
Anyway, noone is forced to [ab]use it.

Right!  Any chance of getting GOSUB and RETURN?

I don't think WHILE-WEND will be too hard to code, and it will pobably be added soon. I've never liked the DO syntax, it
makes me uncertain of what the code means. (But that's my opinion.) If I add WHILE-WEND to the already existing
FOR-TO-STEP-NEXT loop possibilities, I think most situations in part creation will be covered up. Or...?

Hmm.  It's your program, and you should definitely use it the way your want.
But I've always preferred DO ... LOOP over WHILE ... WEND.  It's partly because
DO ... LOOP can be either WHILE or UNTIL (avoiding weird negative tests) and
because WEND is just an odd keyword.  Where is the program wending to?
(Actually, it took me about two years to realize that WEND was a real word, not
just a strange abbreviation).

Steve



Message has 2 Replies:
  Re: LDS ver 0.28
 
(...) I thought that WHILE-WEND was easy to code, but I'm having great problems with it... :( And yes, GOSUB and RETURN have crossed my mind. Could be wrong again, but it sounds almost as easy as GOTO. (...) Oh dear! *sigh* If I get the time then I (...) (25 years ago, 25-Feb-00, to lugnet.cad.dev)
  LDS ver 0.29
 
(...) Done. WHILE-WEND done, too. (URL) a sample script that shows usage of WHILE and GOSUB: i=1 while i<=5 gosub :hello wend end :hello print 0 "Hello"; gosub world return :WORLD print "World." return /Tore (25 years ago, 26-Feb-00, to lugnet.cad.dev, lugnet.cad)

Message is in Reply To:
  Re: LDS ver 0.28
 
GOTO was very easy to program. :o) A little more seriously now: I think it belongs to the BASIC-like syntax I have chosen. Especially in IF statements. Anyway, noone is forced to [ab]use it. I don't think WHILE-WEND will be too hard to code, and it (...) (25 years ago, 24-Feb-00, to lugnet.cad, lugnet.cad.dev)

9 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR