Note:
As a consequence, the GitHub Action
https://github.com/gcarreno/setup-lazarus also fails now. Trying to
use it to install FPC+Lazarus results in an error
Error: getPackageList -- Request timeout: /packagelist.json
in GitHub Action workflow output. I guess because the action downloads
htt
Steve,
If you're looking for equivalent to "return X", use "Exit" with a
parameter in Pascal: "Exit(X)".
It's just a shortcut for "Result := X; Exit;"
Regards,
Michalis
pon., 12 cze 2023 o 19:57 Steve Litt via fpc-pascal
napisaĆ(a):
>
> Nikolay Nikolov via fpc-pascal said on Mon, 12 Jun 2023 0
I'm also curious :)
I just tested, and the -Co (lowercase "o") enables overflow checking
by default (like "{$Q+}" in code),
https://github.com/michaliskambi/modern-pascal-introduction/wiki/What-are-range-and-overflow-checks-(and-errors)-in-Pascal
.
But -CO (uppercase "O") seems unrelated to it.
The chatbot is quite amazing :) I wrote about my nicest moments on
https://castle-engine.io/wp/2022/12/17/my-mind-is-blown-i-can-use-ai-to-generate-castle-game-engine-code-to-integrate-it-with-physx-i-can-use-ai-to-generate-html-documentation-from-comments-in-pascal-code/
-- generate Pascal code to
That's a funny interaction between Variants and Pascal's ambiguous
(logical or bitwise) "and" :) Both the operators and the types are
ambiguous -> making the boolean short-circuit evaluation not possible.
Indeed one workaround is to cast the variants to Booleans explicitly,
which makes it use logi
Great news! Thank you to the FPC team for all magnificent work.
I maintain Docker images with FPC (with various versions and
cross-compilers, with Castle Game Engine and some related tools), see
https://hub.docker.com/r/kambi/castle-engine-cloud-builds-tools/ and
https://github.com/castle-engine/c