Also, the loop continues until the Boolean expression is TRUE, whereas the while loop continues until the Boolean expression is FALSE.This can be understood wrongly. ;D
Hi, I noticed that text on this page is not very clear (but maybe it is my english).
https://wiki.freepascal.org/REPEAT..UNTIL (https://wiki.freepascal.org/REPEAT..UNTIL)QuoteAlso, the loop continues until the Boolean expression is TRUE, whereas the while loop continues until the Boolean expression is FALSE.This can be understood wrongly. ;D
Endless loops are
repeat until False; while True do ;
Hi, I noticed that text on this page is not very clear (but maybe it is my english).
https://wiki.freepascal.org/REPEAT..UNTIL (https://wiki.freepascal.org/REPEAT..UNTIL)QuoteAlso, the loop continues until the Boolean expression is TRUE, whereas the while loop continues until the Boolean expression is FALSE.This can be understood wrongly. ;D
Also, the loop continues until the Boolean expression is TRUE = Also, the loop stops when the Boolean expression is TRUEand
while loop continues until the Boolean expression is FALSE = while loop stops whenl the Boolean expression is FALSEIt was simply a little unclear to me.
https://wiki.freepascal.org/REPEAT..UNTIL (https://wiki.freepascal.org/REPEAT..UNTIL)The writer probably wrote it just after the while... page and it probably was end of the day.QuoteAlso, the loop continues until the Boolean expression is TRUE, whereas the while loop continues until the Boolean expression is FALSE.This can be understood wrongly. ;D
The loop continues until the Boolean expression is TRUE, which is why a loop of the form:will never stop unless there is a Break or GoTo inside it, maybe based on some condition. (add some example)
repeat ... until False;
The reference to the while loop here does not add to the explanation.
Feel free to report a bug to get the documentation improved.Uhm, as far as I understand the complaint’s about the Tao Yue’s Object Pascal tutorial page(s) in the wiki. I don’t think you are supposed to file bug reports for mistakes in the wiki, only if it’s about Michaël Van Canneyt’s documentation (https://freepascal.org/docs.html).
Unfortunately there are actual errors in that informal Pascal introduction. According to that textThis article is a fairly recent creation. I’ve already suggested to the original author to merge it (https://wiki.freepascal.org/index.php?title=User_talk:Rfc1394&oldid=141112#loop_instruction) with the already existing article Loops (https://wiki.freepascal.org/Loops).
In the for-to-do loop, the starting value MUST be lower than the ending value, or the loop will never execute!
This is obviously not correct.
This error is quite persistent because it also is made here: https://wiki.freepascal.org/loop_instruction
Note, AFAIK the article For (https://wiki.freepascal.org/For) has been correct since, pretty much always,Another page that says something about loops :o
Feel free to report a bug to get the documentation improved.Uhm, as far as I understand the complaint’s about the Tao Yue’s Object Pascal tutorial page(s) in the wiki. I don’t think you are supposed to file bug reports for mistakes in the wiki, only if it’s about Michaël Van Canneyt’s documentation (https://freepascal.org/docs.html).