Forum > Documentation (Maintaining -)

Unclear repeat-until docs

<< < (3/3)

Blaazen:
And a note: there are four languages. The chinese one has example, the others don't. Also, I think such docs should - at best - be written by native speakers. Here the author looks like someone from east Asia (but of course it's only my guess).

eny:
Unfortunately there are actual errors in that informal Pascal introduction. According to that text
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.

Kays:

--- Quote from: PascalDragon on November 20, 2020, 03:38:11 pm ---Feel free to report a bug to get the documentation improved.
--- End quote ---
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.

The great thing about wikis is that everyone who’s authorized can edit it, as HowardPC just did. You just need to create an account. No extra vetting/approval necessary.


--- Quote from: eny on November 20, 2020, 09:00:44 pm ---Unfortunately there are actual errors in that informal Pascal introduction. According to that text
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
--- End quote ---
This article is a fairly recent creation. I’ve already suggested to the original author to merge it with the already existing article Loops.

Note, AFAIK the article For has been correct since, pretty much always, and I even added an extra note on inclusive loop limits in the article For over two years ago. I guess/hope most people will go there if they’re looking for for-loops.

eny:

--- Quote from: Kays on November 20, 2020, 10:05:29 pm ---Note, AFAIK the article For has been correct since, pretty much always,
--- End quote ---
Another page that says something about loops  :o

It seems the pages that describe loops are stuck in loop...

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---while true dobegin  CreateNewLoopsPage;  sleep(RandomNbOfdays)end;

PascalDragon:

--- Quote from: Kays on November 20, 2020, 10:05:29 pm ---
--- Quote from: PascalDragon on November 20, 2020, 03:38:11 pm ---Feel free to report a bug to get the documentation improved.
--- End quote ---
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.
--- End quote ---

Ah, right, I thought the link went to the documentation. My bad. :-[

Navigation

[0] Message Index

[*] Previous page

Go to full version