add 3dplot example, small doc fixes

This commit is contained in:
slederer 2024-11-22 23:52:08 +01:00
parent 7fdbd247e6
commit 4ff6129bc3
2 changed files with 100 additions and 3 deletions

View file

@ -44,7 +44,7 @@ var a:array [1..3] of integer;
...
a[1] := 3; a[3] := 2; a[5] := 1;
a[1] := 3; a[2] := 2; a[3] := 1;
for i in a do
writeln(i);
@ -66,7 +66,7 @@ var c:char;
```
In Tridora Pascal, this syntax also works because `[ 'y', 'n' ]` will not be treated as a set literal, but as an array literal.
The _in_ operator also works for linear arrays, so the _if_ statement will have the same result.
The _in_ operator also works for linear arrays, so the above _if_ statement will have the same result.
Note that the array _in_ operator will be more inefficient for larger ranges (i.e. `'A'..'z'`), but more efficient for sparse sets (i.e. `'A','z'`).
@ -123,7 +123,7 @@ The implementation also has the following properties:
- _read_/_write_ do ASCII conversion on scalar variables, records and arrays are processed as binary
- enums and booleans are treated as integers
- _readln_/_writeln_ operate as expected, that is, they perform _read_/_write_ and then wait for/write a newline sequence
- other file operations available are _eof_, _eoln_ and _seek_
- other file operations available are _eof_, _eoln_, _seek_ and _filepos_
- for error handling there is a function _IOResult_
- terminating the program without calling _close_ on open files will lose data