But first fix the code so the test is correct. (The Min function is exactly the
same as the Max function. Min should have A < B, not A > B.)
On Tue, 24 Nov 2015 08:31:08 -0500 Sven Barth
wrote
Am 24.11.2015 14:26 schrieb "Anthony Walter"
http://docs.getlazarus.org/#rtl+unix+fpfsync#
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Mantis entry:
http://bugs.freepascal.org/view.php?id=29080
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Am 24.11.2015 13:53 schrieb "che fou" :
>
> cool news , this is absolutely a great feature . thanks
> but seems generic function can't be inline !
*thinks about this* Oh yeah... I also see why. :/ Would you please report
this as a bug with a simple example so it won't be forgotten? :)
Regards,
Sv
Am 24.11.2015 14:26 schrieb "Anthony Walter" :
>
> Sven, it would seem you cannot currently cannot pass a generic T to
resolve the type of another generic subroutine.
>
> In this example, Test cannot reuse T in its call to Min. I believe
this line should be legal "Value := Min(A, B);" (see the code
Sven, it would seem you cannot currently cannot pass a generic T to resolve
the type of another generic subroutine.
In this example, Test cannot reuse T in its call to Min. I believe
this line should be legal "Value := Min(A, B);" (see the code below for
context)
Currently when you try to compile
Ok, found already.
http://www.freepascal.org/docs-html/rtl/unix/fpfsync.html
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Is there a command to sync a file with a filediscriptor to the disk like in the
link?
http://linux.die.net/man/2/sync
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
cool news , this is absolutely a great feature . thanks
but seems generic function can't be inline !
keep up the good work
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal