On 02.02.2023 12:25, Mattias Gaertner via fpc-devel wrote:
On Thu, 2 Feb 2023 12:00:31 +0100
Ondrej Pokorny via fpc-devel <fpc-devel@lists.freepascal.org> wrote:

[...]
Delphi cannot do it. FPC rocks!
+1

The only disadvantage is that you get a FreeAndNil copy for every
type you pass into the parameter (?)

Do we want to change it in SysUtils? :)
I got a feeling this solves a problem no one had.

I agree with that.

But you know, pascal is strongly typed. You should get a compiler warning when passing an incompatible parameter and not an AV in runtime. Like the Pos(Variant) issue :)

Ondrej

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to