Re: [fpc-pascal] Multiple enumerators per class

2011-09-16 Thread Paul Ishenin
16.09.2011 5:37, Mattias Gaertner wrote: Hi all, I found the Wiki page about the new for-in loop and found a misinformation. It stated wrongly that it is not possible to have multiple enumerators per class. It even gave a proposal for a new feature that did not add anything new. I added an exam

Re: [fpc-pascal] Interface, _AddRef, _Release, etc.

2011-09-16 Thread Marcos Douglas
On Fri, Sep 16, 2011 at 4:46 AM, Graeme Geldenhuys wrote: > You're original problem is exactly why I said mixing class instances and > interface instance is looking for trouble. You better know what you are > doing. > > Attached are two examples of your program. One using CORBA interfaces, > the o

Re: [fpc-pascal] Interface, _AddRef, _Release, etc.

2011-09-16 Thread Marcos Douglas
On Fri, Sep 16, 2011 at 5:26 AM, Jonas Maebe wrote: > > That is incorrect. Several things have been fixed regarding the "implements" > functionality in 2.5.x, but the basics already worked in 2.4.4. The example > works fine when compiled with 2.4.4 Exactly (I did not see your affirmation before m

Re: [fpc-pascal] Interface, _AddRef, _Release, etc.

2011-09-16 Thread Marcos Douglas
On Fri, Sep 16, 2011 at 4:02 AM, Graeme Geldenhuys wrote: > On 15/09/2011 17:12, Felipe Monteiro de Carvalho wrote: >> >> http://wiki.lazarus.freepascal.org/How_To_Use_Interfaces_to_write_less_code > > Should that example not mention that it will not work with any released > FPC version to date?  

Re: [fpc-pascal] Interface, _AddRef, _Release, etc.

2011-09-16 Thread Jonas Maebe
On 16 Sep 2011, at 09:02, Graeme Geldenhuys wrote: Should that example not mention that it will not work with any released FPC version to date? No. That example will only work with the "still to be released" 2.6.0 and later. Why Because current released FPC versions don't support the 'imp

Re: [fpc-pascal] [Patch] New tests for fcl-db export

2011-09-16 Thread michael . vancanneyt
On Fri, 16 Sep 2011, Reinier Olislagers wrote: Hi list, FYI & hopefully implementation: I've been writing some tests for fcl-db export, that test basic functionality for: - CSV export - DBF export - SimpleXML export Please find them in Mantis: 20271 [Patch] SimpleXML export: new test for

Re: [fpc-pascal] Interface, _AddRef, _Release, etc.

2011-09-16 Thread Graeme Geldenhuys
You're original problem is exactly why I said mixing class instances and interface instance is looking for trouble. You better know what you are doing. Attached are two examples of your program. One using CORBA interfaces, the other using non-reference counting COM style interface. Both work under

Re: [fpc-pascal] Interface, _AddRef, _Release, etc.

2011-09-16 Thread Graeme Geldenhuys
On 15/09/2011 16:54, Marcos Douglas wrote: > > Well, wrong just because the language is so but not because is ilogical, > right? Unless you are well versed with interfaces, I would not go there. Mixing object references and interface references (especially if reference counting is enabled) - you

[fpc-pascal] [Patch] New tests for fcl-db export

2011-09-16 Thread Reinier Olislagers
Hi list, FYI & hopefully implementation: I've been writing some tests for fcl-db export, that test basic functionality for: - CSV export - DBF export - SimpleXML export Please find them in Mantis: 20271 [Patch] SimpleXML export: new test for fcl-db 20268 [Patch] CSV export: new test for fcl

Re: [fpc-pascal] Interface, _AddRef, _Release, etc.

2011-09-16 Thread Graeme Geldenhuys
On 15/09/2011 17:12, Felipe Monteiro de Carvalho wrote: > > http://wiki.lazarus.freepascal.org/How_To_Use_Interfaces_to_write_less_code Should that example not mention that it will not work with any released FPC version to date? That example will only work with the "still to be released" 2.6.0 a