To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 3561
3560  |  3562
Subject: 
LDS ver 0.29
Newsgroups: 
lugnet.cad.dev, lugnet.cad
Date: 
Sat, 26 Feb 2000 11:19:20 GMT
Viewed: 
41 times
  
Steve Bliss wrote:

Any chance of getting GOSUB and RETURN?

Done.

WHILE-WEND done, too.

http://home2.swipnet.se/~w-20413/lds/lds.htm

Here's 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



Message has 1 Reply:
  Re: LDS ver 0.29
 
(...) Ahh! Fantastic! Now, that was a great example, wasn't it? Best thing with it was that the "Eternal loop" error check works... :) Should of course be: i=1 while i<=5 gosub :hello i=i+1 wend end (25 years ago, 26-Feb-00, to lugnet.cad.dev, lugnet.cad)

Message is in Reply To:
  Re: LDS ver 0.28
 
(...) Double-:) (...) Right! Any chance of getting GOSUB and RETURN? (...) 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 (...) (25 years ago, 25-Feb-00, to 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