[fpc-pascal] procedure that accept generic types?

2013-09-03 Thread Xiangrong Fang
Hi There, I try to write a procedure with generic parameters, but failed: type generic TArray = array of T; procedure ProcessArray(arr: TArray); begin end; The compiler said "Generics without specialization cannot be used..." But if I specialize the parameter then this procedure is useless.

[fpc-pascal] [PATCH] Fix for trunk compilation error after 25403/stringlist fix

2013-09-03 Thread Reinier Olislagers
Hi *, Trunk didn't compile... probably forgotten diff? Diff in mantis http://bugs.freepascal.org/view.php?id=24949 fixed it for me. Thanks, Reinier ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo

Re: [fpc-pascal] embedded HTTP server in GUI application

2013-09-03 Thread Graeme Geldenhuys
On 03/09/13 08:36, Michael Van Canneyt wrote: > fphttpserver.pp contains the component. > > You can perfectly use the component. That's why I designed it like this, for > use in a GUI. Thanks for the info Michael, I'll take a closer look at that. Regards, Graeme _

Re: [fpc-pascal] embedded HTTP server in GUI application

2013-09-03 Thread Ludo Brands
On 09/03/2013 12:09 PM, Michael Van Canneyt wrote: > > > On Tue, 3 Sep 2013, Marco van de Voort wrote: > >> In our previous episode, Graeme Geldenhuys said: >>> Can anybody make recommendations for embedding a HTTP Server into a GUI >>> application? >>> >>> ps: I'm using FPC 2.6.2, and the end r

Re: [fpc-pascal] ExtractFilePath and \ as pathdelim

2013-09-03 Thread Reimar Grabowski
On Tue, 03 Sep 2013 00:24:50 +0200 Michalis Kamburelis wrote: > And I really, really wish this would be changed in FPC too... That is, > AllowDirectorySeparators should be ['/'] on Unix, not ['/','\']. > Backslash is a completely normal character in Unix filenames. The > default value of Allow

Re: [fpc-pascal] embedded HTTP server in GUI application

2013-09-03 Thread Michael Van Canneyt
On Tue, 3 Sep 2013, Marco van de Voort wrote: In our previous episode, Graeme Geldenhuys said: Can anybody make recommendations for embedding a HTTP Server into a GUI application? ps: I'm using FPC 2.6.2, and the end result application will run under Windows (primarily) and Linux. Indy10.

Re: [fpc-pascal] embedded HTTP server in GUI application

2013-09-03 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > Can anybody make recommendations for embedding a HTTP Server into a GUI > application? > > ps: I'm using FPC 2.6.2, and the end result application will run under > Windows (primarily) and Linux. Indy10. I know there is a lot of (IMHO baseless) ha

Re: [fpc-pascal] embedded HTTP server in GUI application

2013-09-03 Thread Michael Van Canneyt
On Mon, 2 Sep 2013, Graeme Geldenhuys wrote: Hi, Can anybody make recommendations for embedding a HTTP Server into a GUI application? ps: I'm using FPC 2.6.2, and the end result application will run under Windows (primarily) and Linux. 1) My initial thought was to use Synapse. The TTCPHTTPD