Re: [fpc-pascal] Free Pascal 3.0.4-rc1 released!

2017-08-07 Thread Mattias Gaertner
On Tue, 18 Jul 2017 10:44:55 +0200 (CEST) mar...@stack.nl (Marco van de Voort) wrote: >[...] > ftp://freepascal.stack.nl/pub/mirrors/fpc/beta/3.0.4-rc1/ The fpc-3.0.4-0.rc1.x86_64.rpm does not work on Fedora 21 x86_64: Free Pascal Compiler version 3.0.4rc1 [2017/07/02] for x86_64 Copyright (c) 1

Re: [fpc-pascal] Free Pascal 3.0.4-rc1 released!

2017-08-07 Thread Marco van de Voort
In our previous episode, Mattias Gaertner said: > >[...] > > ftp://freepascal.stack.nl/pub/mirrors/fpc/beta/3.0.4-rc1/ > > The fpc-3.0.4-0.rc1.x86_64.rpm does not work on Fedora 21 x86_64: > > Free Pascal Compiler version 3.0.4rc1 [2017/07/02] for x86_64 > Copyright (c) 1993-2017 by Florian Klaem

[fpc-pascal] inline callback functions?

2017-08-07 Thread Ryan Joseph
I’m seeing feature this in other languages and it’s pretty useful. Has anyone ever considered this for Pascal? Instead of declaring a method in the class (or other function) it’s written inline from the callers scope and inherits from that scope. The only advantage is readability since everythi

Re: [fpc-pascal] inline callback functions?

2017-08-07 Thread Mattias Gaertner
On Mon, 7 Aug 2017 10:52:35 -0600 Ryan Joseph wrote: >[...] Note that "inline" functions in FPC have a different meaning: https://www.freepascal.org/docs-html/prog/progsu36.html What you mean are "anonymous functions" or "closures". State in FPC: http://lists.freepascal.org/pipermail/fpc-devel

Re: [fpc-pascal] Best way to insert bytes into a TBytes variable?

2017-08-07 Thread Michael Schnell
On 02.08.2017 09:29, Michael Van Canneyt wrote: FPC "forces" nothing. It offers a single-byte string TStrings implementation. If you want to use that for Unicode, you indeed have no choice but to use UTF8 or use/write a separate class that uses UTF16. That is why I said that it is less sil