Re: [fpc-devel] Generics

2006-04-11 Thread Peter Vreman
> On 4/11/06, Marco van de Voort <[EMAIL PROTECTED]> wrote: >> >> > Templates' pros: >> > - support of primitive types; >> > - flexibility (ability to call non-virtual and non-related methods, >> > operators, etc); >> > - ability of coding for speed. >> > >> > Type erasure generics' pros: >> > - No

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

2006-04-11 Thread Peter Vreman
> In package for Windows, I have some object files that the unit requires. > How do I make a Makefile.fpc file that installs the object files into a > package and allows programs using the package to locate the object files? > In other words, I want to be sure that a developer can use this unit in

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

2006-04-11 Thread Michalis Kamburelis
J. Peter Mugaas wrote: [...] > > And I noticed that the zlib1.dll filename is the same between the official > ZLib .DLL and the the one you mentioned. The zlib version you mentioned has > a file size of 73.5 KB (75,264 bytes) while the official one has a file size > of 58.5 KB (59,904 bytes).

Re: [fpc-devel] Generics

2006-04-11 Thread Flávio Etrusco
On 4/11/06, Danny Milosavljevic <[EMAIL PROTECTED]> wrote: > Hi, > > Am Montag, den 10.04.2006, 23:33 -0300 schrieb Flávio Etrusco: > > On 4/10/06, Danny Milosavljevic <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > (...) > > > > but thing is I can't see much use for generics for low level > > > > t

Re: [fpc-devel] Generics

2006-04-11 Thread Danny Milosavljevic
Hi, Am Montag, den 10.04.2006, 23:33 -0300 schrieb Flávio Etrusco: > On 4/10/06, Danny Milosavljevic <[EMAIL PROTECTED]> wrote: > > Hi, > > > (...) > > > but thing is I can't see much use for generics for low level > > > tasks. > > > > You need them for any kind of compile-time-type-checked collec

Re: [fpc-devel] Generics

2006-04-11 Thread Flávio Etrusco
On 4/11/06, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > > Templates' pros: > > - support of primitive types; > > - flexibility (ability to call non-virtual and non-related methods, > > operators, etc); > > - ability of coding for speed. > > > > Type erasure generics' pros: > > - No additional

[fpc-devel] DateTimeToTimeStamp

2006-04-11 Thread Micha Nelissen
Hi, Somebody has reported a bug for TDbf: https://sourceforge.net/tracker/index.php?func=detail&aid=1466260&group_id=34085&atid=410671 function DateTimeToTimeStamp(DateTime: TDateTime): TTimeStamp; begin result.Time := Trunc(Frac(DateTime) * MSecsPerDay); result.Date := 1 + DateDelta + Trunc

Re: [fpc-devel] Generics

2006-04-11 Thread Micha Nelissen
On Tue, 11 Apr 2006 13:06:27 -0300 "Flávio Etrusco" <[EMAIL PROTECTED]> wrote: > > What does type erasure mean without a runtime engine (VM) ? > > That the "template" is not aware of the instantiated type of the > template parameters, they are only accessed/resolved through oop > (inheritance/pol

Re: [fpc-devel] Generics

2006-04-11 Thread Flávio Etrusco
On 4/11/06, Micha Nelissen <[EMAIL PROTECTED]> wrote: > On Mon, 10 Apr 2006 23:33:12 -0300 > "Flávio Etrusco" <[EMAIL PROTECTED]> wrote: > > > Type erasure generics' pros: > > What does type erasure mean without a runtime engine (VM) ? > That the "template" is not aware of the instantiated type of

Re: [fpc-devel] Generics

2006-04-11 Thread Micha Nelissen
On Mon, 10 Apr 2006 23:33:12 -0300 "Flávio Etrusco" <[EMAIL PROTECTED]> wrote: > Type erasure generics' pros: What does type erasure mean without a runtime engine (VM) ? Micha ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freep

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

2006-04-11 Thread J. Peter Mugaas
On Tue, 11 Apr 2006 12:10:40 +0200, Michalis Kamburelis wrote: > J. Peter Mugaas wrote: > [...] >> On Win32, that may not be desirable since there seems to be >> several versions of the ZLIB .DLL >> > Unfortunately, it's true that there are several (sometimes > incompatible > -- various zlib versio

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

2006-04-11 Thread J. Peter Mugaas
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 high-profile. >> > Hmmm True,

Re: [fpc-devel] bug ID #4855

2006-04-11 Thread Marc Weustink
Peter Vreman wrote: Thanks a lot marc, I was looking for that code that we used to prove this, But couldn't find the damn thing... Your 100% correct in what my problem is... Id love any help to get this fixed... in fact I need It fixed :( I must port our companies server software to linux, and

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

2006-04-11 Thread Michalis Kamburelis
J. Peter Mugaas wrote: [...] > On Win32, that may not be desirable since there seems to be several versions > of the ZLIB .DLL Unfortunately, it's true that there are several (sometimes incompatible -- various zlib versions, various calling conventions) zlib.dll versions floating around. Fortuna

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

2006-04-11 Thread Tomas Hajny
Daniël Mantione wrote: > > Op Tue, 11 Apr 2006, schreef J. Peter Mugaas: > >> Before mentioning that the .obj files are not supported, I am aware >> that this has not been tested. I wish to see if this can work (you >> don't know until you try). > > It is not a matter of .obj not been tested, it i

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

2006-04-11 Thread Daniël Mantione
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 high-profile. Hmmm True, but I think that should not stop people from using it; if people do not use ou

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

2006-04-11 Thread 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 high-profile. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-deve

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

2006-04-11 Thread Marco van de Voort
> > I'm trying to do this with the ZLib library (the > > most recent version). For Linux, I have verified that the ZLib library > > works through dynamic loading. On Win32, that may not be desirable > > since there seems to be several versions of the ZLIB .DLL > > It is often better to use Pa

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

2006-04-11 Thread Daniël Mantione
Op Tue, 11 Apr 2006, schreef J. Peter Mugaas: > Before mentioning that the .obj files are not supported, I am aware > that this has not been tested. I wish to see if this can work (you > don't know until you try). It is not a matter of .obj not been tested, it is a matter of the GNU linker

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

2006-04-11 Thread Vincent Snijders
J. Peter Mugaas schreef: Before mentioning that the .obj files are not supported, I am aware that this has not been tested. I wish to see if this can work (you don't know until you try). I'm trying to do this with the ZLib library (the most recent version). For Linux, I have verified that t

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

2006-04-11 Thread J. Peter Mugaas
I have a qestion about building units and installing them using the fpcmake system. In package for Windows, I have some .obj files that the unit requires. How do I make a Makefile.fpc file that installs the .obj files into a package and allows programs using the package to locate the .obj file

Re: [fpc-devel] Generics

2006-04-11 Thread Marco van de Voort
> Templates' pros: > - support of primitive types; > - flexibility (ability to call non-virtual and non-related methods, > operators, etc); > - ability of coding for speed. > > Type erasure generics' pros: > - No additional generated code, no code bloat; > - Code is easier to understand (no addi

RE: [fpc-devel] bug ID #4855

2006-04-11 Thread Peter Vreman
> Thanks a lot marc, > I was looking for that code that we used to prove this, > But couldn't find the damn thing... > > Your 100% correct in what my problem is... > Id love any help to get this fixed... in fact I need > It fixed :( > > I must port our companies server software to linux, and > I