comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » REPEAT BEGIN turns into & END... why?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: REPEAT BEGIN turns into & END... why? [message #12617 is a reply to message #12529] Mon, 24 August 1998 00:00 Go to previous messageGo to previous message
davidf7203 is currently offline  davidf7203
Messages: 12
Registered: August 1998
Junior Member
Joe Zawodny writes:

>> I'm trying to write an interactive version of the procedure in David
>> Fannning's book that makes an iso-surface of a head (p. 125)
>>
>> Anyway...
>>
>> The compiler insist on reading my REPEAT BEGIN statement as an & END
>> statement.
>>
>> Why?

The purpose of a REPEAT statement is to perform the loop test
at the END of the loop, instead of at the beginning. Thus,
the correct syntax is:

REPEAT statement UNTIL test

For a multiple-statement REPEAT the syntax will look like this:

REPEAT BEGIN
Statement1
Statement2
ENDREP UNTIL test

Cheers,

David

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Porting IDL
Next Topic: Colors Common Block?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 09:24:46 PDT 2025

Total time taken to generate the page: 0.71963 seconds