Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-29 Thread Ewald
Once upon a time, on 11/28/2012 03:40 PM to be precise, luiz americo pereira camara said: >>> So, i keep my points. Even because is not a big change with easy >>> implementation that will fix the above issues. >> >> It IS a big change. There is production code out there that uses this, >> and this

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread luiz americo pereira camara
>>> On 2012-11-27 16:19, Michael Van Canneyt wrote: > > > Correct. But the design should also not try to cover all possible use cases > at any cost. > > Till now, I have not seen a common use case that will not work. See Test1 in a separate message i sent. It will not work with the current impleme

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread michael . vancanneyt
On Wed, 28 Nov 2012, luiz americo pereira camara wrote: 2012/11/28 Graeme Geldenhuys : On 2012-11-27 16:19, Michael Van Canneyt wrote: If you haven't made other changes to those LCL Mediators since the code you emailed me, I could take a look at updating the code for Lazarus too. That's

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread Graeme Geldenhuys
On 2012-11-28 15:25, luiz americo pereira camara wrote: > if an architeture works in a scenario does not mean it's good or at > least could not be improved. I'm not disputing that either. It just seems that Michael and I have been using observers in production code for many years. The FPC design i

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread luiz americo pereira camara
2012/11/28 Graeme Geldenhuys : > On 2012-11-27 16:19, Michael Van Canneyt wrote: >> > If you haven't made other changes to those LCL Mediators since the code > you emailed me, I could take a look at updating the code for Lazarus too. > > That's a perfect example of the FPC Observers support being

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread Graeme Geldenhuys
On 2012-11-28 15:02, luiz americo pereira camara wrote: > > Given that better discuss / test / change such important change > earlier than later, nothing stops to treat this release as a beta (or > whatever name is appropriate) even if was formally released as a RC. [Not related to the issue in

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread Jonas Maebe
On 28 Nov 2012, at 16:02, luiz americo pereira camara wrote: 2012/11/28 Jonas Maebe : Personally, I think a release candidate is too late. A release candidate freezes all interfaces (even a beta release does so already, normally). Generally the only fixes still performed afterwards are f

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread luiz americo pereira camara
2012/11/28 Jonas Maebe : > > > Personally, I think a release candidate is too late. A release candidate > freezes all interfaces (even a beta release does so already, normally). > Generally the only fixes still performed afterwards are for blocking > crashers/failures, major security holes or build

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread luiz americo pereira camara
2012/11/28 Graeme Geldenhuys : > Luiz, could you produce a small sample application (or show the code you > are working on for Lazarus) where you think the current FPC Observer > implementation doesn't work. Your initial bug report doesn't include any > test project to show the issue. Yes. I'll

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread luiz americo pereira camara
2012/11/28 : > > > On Tue, 27 Nov 2012, luiz americo pereira camara wrote: > >> 2012/11/27 Michael Van Canneyt : >> As practical example take a LCL Form that is supposed to be observed. >> It takes an Observer property and attach it to certain child controls >> (TEdit etc) >> >> 1) Currently i'm

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread michael . vancanneyt
On Wed, 28 Nov 2012, Marco van de Voort wrote: In our previous episode, michael.vancann...@wisa.be said: At some point, there must be an object, and at some point, there is a typecast, You often can't reroot external components, but if they support tcomponent What does "reroot external co

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread Graeme Geldenhuys
On 2012-11-27 16:19, Michael Van Canneyt wrote: > > The consequence is that you must pass around the objects themselves. I'm curious to see Luiz's code example of what issues he has, but in the mean time, maybe it wouldn't be such a bad idea to update (with latest FPC changes and Observer suppor

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread Marcos Douglas
On Wed, Nov 28, 2012 at 5:23 AM, Vincent Snijders wrote: > 2012/11/28 >> It IS a big change. There is production code out there that uses this, >> and this is an incompatible change. > > Then Luiz is right on time with his proposal, with the frist release > candidate of the first release that con

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread Marco van de Voort
In our previous episode, michael.vancann...@wisa.be said: > >> At some point, there must be an object, and at some point, there is a > >> typecast, > > > > You often can't reroot external components, but if they support tcomponent > > What does "reroot external components" mean ? (Change the root

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread Jonas Maebe
On 28 Nov 2012, at 09:23, Vincent Snijders wrote: 2012/11/28 It IS a big change. There is production code out there that uses this, and this is an incompatible change. Then Luiz is right on time with his proposal, with the frist release candidate of the first release that contains this fe

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread Graeme Geldenhuys
On 2012-11-28 10:07, Graeme Geldenhuys wrote: > > You can add a CORBA interface to any existing class, and it doesn't need > to descend from TInterfacedObject either. CORBA is not COM interfaces. > In case anybody is in doubt. Here is a small example where CORBA interfaces are attached to TCompo

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread Graeme Geldenhuys
On 2012-11-28 09:41, Marco van de Voort wrote: > > You often can't reroot external components, but if they support tcomponent > (and thus Tinterfacedobject), you can add an interface in a child class. You can add a CORBA interface to any existing class, and it doesn't need to descend from TInter

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread michael . vancanneyt
On Wed, 28 Nov 2012, Marco van de Voort wrote: In our previous episode, michael.vancann...@wisa.be said: Then Luiz is right on time with his proposal, with the frist release candidate of the first release that contains this feature. If production code already uses it, then the production code

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread Graeme Geldenhuys
On 2012-11-28 08:23, Vincent Snijders wrote: > production code already uses it, then the production code writers must > have taken a risk for change knowing that this was a not yet released > feature. +1 I thought it was a known fact that if you use FPC Trunk in production code, you stand a very

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread Marco van de Voort
In our previous episode, michael.vancann...@wisa.be said: > > Then Luiz is right on time with his proposal, with the frist release > > candidate of the first release that contains this feature. If > > production code already uses it, then the production code writers must > > have taken a risk for c

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread michael . vancanneyt
On Wed, 28 Nov 2012, Vincent Snijders wrote: 2012/11/28 It IS a big change. There is production code out there that uses this, and this is an incompatible change. Then Luiz is right on time with his proposal, with the frist release candidate of the first release that contains this feature.

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread Paul Ishenin
28.11.2012 16:23, Vincent Snijders wrote: 2012/11/28 It IS a big change. There is production code out there that uses this, and this is an incompatible change. Then Luiz is right on time with his proposal, with the frist release candidate of the first release that contains this feature. If pr

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread Vincent Snijders
2012/11/28 > It IS a big change. There is production code out there that uses this, > and this is an incompatible change. Then Luiz is right on time with his proposal, with the frist release candidate of the first release that contains this feature. If production code already uses it, then the pr

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread michael . vancanneyt
On Tue, 27 Nov 2012, luiz americo pereira camara wrote: 2012/11/27 Michael Van Canneyt : On Tue, 27 Nov 2012, luiz americo pereira camara wrote: Hi, i requested a change to observer interface with some considerations in http://bugs.freepascal.org/view.php?id=23394 It will not happen.

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-27 Thread luiz americo pereira camara
2012/11/27 Michael Van Canneyt : > > > On Tue, 27 Nov 2012, luiz americo pereira camara wrote: > >> >> Hi, i requested a change to observer interface with some >> considerations in http://bugs.freepascal.org/view.php?id=23394 > > > It will not happen. > > If you want to pass around interfaces safel

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-27 Thread Leonardo M . Ramé
- Original Message - > From: Graeme Geldenhuys > To: fpc-devel@lists.freepascal.org > Cc: > Sent: Tuesday, November 27, 2012 2:29 PM > Subject: Re: [fpc-devel] Considerations about observer [was: Free Pascal > 2.6.2 rc1] > > On 2012-11-27 17:17, Leonardo M

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-27 Thread Graeme Geldenhuys
On 2012-11-27 17:17, Leonardo M. Ramé wrote: > > Hi, does anyone know of a link to the wiki with info about the newly > implemented Observer pattern?. > No wiki page, but I did submit in the mailing list and Mantis a observer demo with code comments to show how it works and how to use it. h

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-27 Thread Leonardo M . Ramé
- Original Message - > From: Michael Van Canneyt > To: FPC developers' list > Cc: > Sent: Tuesday, November 27, 2012 1:19 PM > Subject: Re: [fpc-devel] Considerations about observer [was: Free Pascal > 2.6.2 rc1] > > > > On Tue, 27 Nov 2012

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-27 Thread Michael Van Canneyt
On Tue, 27 Nov 2012, luiz americo pereira camara wrote: 2012/11/13 Marco van de Voort : Hello, We have placed the first release-candidate of the Free Pascal Compiler version 2.6.2 on our ftp-servers. [..] * Support for observer pattern added to fcl-base (and base classes in RTL) Hi

[fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-27 Thread luiz americo pereira camara
2012/11/13 Marco van de Voort : > > Hello, > > We have placed the first release-candidate of the Free Pascal Compiler > version 2.6.2 on our ftp-servers. [..] > * Support for observer pattern added to fcl-base (and base classes in RTL) Hi, i requested a change to observer interface with some