[fpc-devel] TDOMNodeList.GetItem

2006-04-13 Thread Alexander Todorov
Hello, as far as I tested TDOMNodeList.GetItem is not working correctly. - original --- function TDOMNodeList.GetItem(index: LongWord): TDOMNode; var child: TDOMNode; begin Result := nil; child := node.FirstChild; while Assigned(child) do begin if index = 0 then

Re: [fpc-devel] Generics

2006-04-13 Thread Jonas Maebe
On 13 apr 2006, at 00:29, Flávio Etrusco wrote: http://www.dummzeuch.de/delphi/object_pascal_templates/english.html http://community.borland.com/article/0,1410,27603,00.html Ingenious! I really feel stupid for not thinking of something that simple like this before :-) Something similar is

Re: [fpc-devel] Generics

2006-04-13 Thread Marc Weustink
Flávio Etrusco wrote: On 4/12/06, Bisma Jayadi [EMAIL PROTECTED] wrote: It isn't clear to me what the current status about Generics is: http://www.freepascal.org/wiki/index.php/Generics http://www.dummzeuch.de/delphi/object_pascal_templates/english.html

Re: [fpc-devel] Generics

2006-04-13 Thread Daniël Mantione
Op Thu, 13 Apr 2006, schreef Marc Weustink: Ingenious! I really feel stupid for not thinking of something that simple like this before :-) Is it possible this way to derive 2 (or more) classes in one unit from the same generic ? The matrix unit does it. It uses FPC's preprocessor

Re: [fpc-devel] Unit linking to .obj files and fpcmake.

2006-04-13 Thread Luiz Americo Pereira Camara
J. Peter Mugaas escreveu: On Tue, 11 Apr 2006 11:24:39 +0200 (CEST), Daniël Mantione wrote: Op Tue, 11 Apr 2006, schreef Marco van de Voort: Over the years several indy bugs have been fixed, and nobody knows the Several zlib bugs I meant here of course, some quite

Re: [fpc-devel] Unit linking to .obj files and fpcmake.

2006-04-13 Thread Felipe Monteiro de Carvalho
Hello, Just one note. You don´t need to use a external dll to use the c version. On a Delphi project of mine I use ZLibEx.pas It is a pascal file that statically imports .o files compiled from the official c sources using c++ builder and offers some Stream objects to use ZLib with TFileStream

Re: [fpc-devel] Unit linking to .obj files and fpcmake.

2006-04-13 Thread Marco van de Voort
There are some issues however: 1 - Windows only 2 - Was made with Delphi in mind, so may need some minor changes to compile with Free Pascal, like adding {$mode delphi} 3 - A set of suitable .o files that are FPC compatible. (3) is the biggest problem.

Re: [fpc-devel] Unit linking to .obj files and fpcmake.

2006-04-13 Thread Felipe Monteiro de Carvalho
On 4/13/06, Marco van de Voort [EMAIL PROTECTED] wrote: 3 - A set of suitable .o files that are FPC compatible. (3) is the biggest problem. What is the format of .o files? Is it COFF or something like that? Are they all incompatible across compilers? -- Felipe Monteiro de Carvalho

Re: [fpc-devel] Unit linking to .obj files and fpcmake.

2006-04-13 Thread J. Peter Mugaas
On Thu, 13 Apr 2006 12:11:36 -0300, Felipe Monteiro de Carvalho wrote: Hello, Just one note. You don´t need to use a external dll to use the c version. On a Delphi project of mine I use ZLibEx.pas It is a pascal file that statically imports .o files compiled from the official c sources

Re: [fpc-devel] Unit linking to .obj files and fpcmake.

2006-04-13 Thread Marc Weustink
J. Peter Mugaas wrote: On Thu, 13 Apr 2006 12:11:36 -0300, Felipe Monteiro de Carvalho wrote: Hello, Just one note. You don´t need to use a external dll to use the c version. On a Delphi project of mine I use ZLibEx.pas It is a pascal file that statically imports .o files compiled from the

Re: [fpc-devel] Unit linking to .obj files and fpcmake.

2006-04-13 Thread J. Peter Mugaas
On Thu, 13 Apr 2006 05:16:26 -0300, Luiz Americo Pereira Camara wrote: J. Peter Mugaas escreveu: On Tue, 11 Apr 2006 11:24:39 +0200 (CEST), Daniël Mantione wrote: Op Tue, 11 Apr 2006, schreef Marco van de Voort: Over the years several indy bugs have been fixed, and nobody knows the