Re: [fpc-pascal] Feature announcement: Generic functions, procedures and methods

2015-11-24 Thread DougC
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"

Re: [fpc-pascal] sync files (2)

2015-11-24 Thread 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

Re: [fpc-pascal] Feature announcement: Generic functions, procedures and methods

2015-11-24 Thread Anthony Walter
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

Re: [fpc-pascal] Feature announcement: Generic functions, procedures and methods

2015-11-24 Thread Sven Barth
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

Re: [fpc-pascal] Feature announcement: Generic functions, procedures and methods

2015-11-24 Thread Sven Barth
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

Re: [fpc-pascal] Feature announcement: Generic functions, procedures and methods

2015-11-24 Thread 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 below for context) Currently when you try to compile

[fpc-pascal] sync files (2)

2015-11-24 Thread Rainer Stratmann
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

[fpc-pascal] sync files

2015-11-24 Thread Rainer Stratmann
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

Re: [fpc-pascal] Feature announcement: Generic functions, procedures and methods

2015-11-24 Thread che fou
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