Re: [fpc-devel] But what /is/ a string?

2012-08-28 Thread Martin Schreiber
On Monday 27 August 2012 13:40:59 Michael Fuchs wrote: Am 27.08.2012 10:51, schrieb Michael Schnell: If in future TObject is reference (as it might be in a future Delphi version, according to an Embarcadero blog) counting (and thus using .Free is not mandatory any more), [...] I hope

Re: [fpc-devel] Recent added support for Observer pattern in FCL

2012-08-28 Thread michael . vancanneyt
On Tue, 28 Aug 2012, Graeme Geldenhuys wrote: On 28/08/12 02:48, Luiz Americo Pereira Camara wrote: Back in 2010, in the thread about observer support in fcl, i asked if the actions would be customizable so i could, e.g., notify/observe if a child was added or removed in a tree structure.

Re: [fpc-devel] Recent added support for Observer pattern in FCL

2012-08-28 Thread Graeme Geldenhuys
On 28/08/12 08:50, michael.vancann...@wisa.be wrote: The first: Procedure TmyObject.SomethingChanged; Var Rec : TMyOperationInfo; // Contains custom information about your operation. begin Rec.XYZ:=MoreInfo; // Set up as needed. FPONotifyObservers(Self,ooCustom,@Rec); end; Correct, and

Re: [fpc-devel] Recent added support for Observer pattern in FCL

2012-08-28 Thread Graeme Geldenhuys
On 28/08/12 08:57, michael.vancann...@wisa.be wrote: I think you didn't read the original poster's mail subject line 100% carefully :-) My apologies, I thought he was commenting on the FPObserver support added as a unit to FCL, not RTL. The subject line quoting a old post or something.

Re: [fpc-devel] Recent added support for Observer pattern in FCL

2012-08-28 Thread Luiz Americo Pereira Camara
Em 28/8/2012 04:50, michael.vancann...@wisa.be escreveu: On Mon, 27 Aug 2012, Luiz Americo Pereira Camara wrote: I ask to change to a mechanism that could allow customizable operations (more than one) That is why you have ooCustom. I'm asking that because i have implemented a similar

Re: [fpc-devel] Recent added support for Observer pattern in FCL

2012-08-28 Thread michael . vancanneyt
On Tue, 28 Aug 2012, Luiz Americo Pereira Camara wrote: Em 28/8/2012 04:50, michael.vancann...@wisa.be escreveu: On Mon, 27 Aug 2012, Luiz Americo Pereira Camara wrote: I ask to change to a mechanism that could allow customizable operations (more than one) That is why you have

Re: [fpc-devel] Recent added support for Observer pattern in FCL

2012-08-28 Thread Graeme Geldenhuys
On 28/08/12 13:15, michael.vancann...@wisa.be wrote: For example, on my 'doubtful' list I had ooPropertyChange, to be used in combination with the GetPropInfo() and a call in TPersistent: FPOPropertyChanged(Const APropName : String); This could work, and I can see use-cases where this could

Re: [fpc-devel] Recent added support for Observer pattern in FCL

2012-08-28 Thread Luiz Americo Pereira Camara
Em 28/8/2012 09:15, michael.vancann...@wisa.be escreveu: On Tue, 28 Aug 2012, Luiz Americo Pereira Camara wrote: Why not let TFPObservedOperation as integer and define constants. It could define a constant like ooUser = 32 Below ooUser is reserved for future default constants Above ooUser

Re: [fpc-devel] Recent added support for Observer pattern in FCL

2012-08-28 Thread michael . vancanneyt
On Tue, 28 Aug 2012, Luiz Americo Pereira Camara wrote: Em 28/8/2012 09:15, michael.vancann...@wisa.be escreveu: On Tue, 28 Aug 2012, Luiz Americo Pereira Camara wrote: Why not let TFPObservedOperation as integer and define constants. It could define a constant like ooUser = 32 Below

Re: [fpc-devel] Recent added support for Observer pattern in FCL

2012-08-28 Thread Luiz Americo Pereira Camara
Em 28/8/2012 12:46, michael.vancann...@wisa.be escreveu: On Tue, 28 Aug 2012, Luiz Americo Pereira Camara wrote: Em 28/8/2012 09:15, michael.vancann...@wisa.be escreveu: On Tue, 28 Aug 2012, Luiz Americo Pereira Camara wrote: Why not let TFPObservedOperation as integer and define

Re: [fpc-devel] But what /is/ a string?

2012-08-28 Thread Sven Barth
On 27.08.2012 13:52, Marco van de Voort wrote: In our previous episode, Jonas Maebe said: Seriously, even if you forget compatibility, it is impossible to assess something like that without in-depth design (and preferably a test implementation). Could always look at Delphi XE3:

Re: [fpc-devel] But what /is/ a string?

2012-08-28 Thread Michael Van Canneyt
On Tue, 28 Aug 2012, Sven Barth wrote: On 27.08.2012 13:52, Marco van de Voort wrote: In our previous episode, Jonas Maebe said: Seriously, even if you forget compatibility, it is impossible to assess something like that without in-depth design (and preferably a test implementation).

[fpc-devel] cross copiling x86_64 to i386 ?

2012-08-28 Thread Martin
I might be doing something wrong. I was trying to build a cross compiler (well I took a script that is to build a arm cross, and only did a search and replace... So there is plenty of room for error on by side. Before I go and look deeper: Should it work. Or is the below correct and it is

Re: [fpc-devel] Recent added support for Observer pattern in FCL

2012-08-28 Thread Hans-Peter Diettrich
Luiz Americo Pereira Camara schrieb: This is the purpose i intend to use (replace my implementation). Basically is a tree structure that needs to be observed. To avoid performance problems like having to parse all the tree when a change occurs i defined actions when a Child is added, deleted

Re: [fpc-devel] cross copiling x86_64 to i386 ?

2012-08-28 Thread Hans-Peter Diettrich
Martin schrieb: C:/FPC/tag_build_2_6_0/fpcsrc/compiler/ppcx64.exe -Ur -Xs -O2 -n -Fui386 -Fusystems -FuC:/fpc/tag_build_2_6_0/fpcsrc/rtl/units/x86_64-win64 -Fii386 -FE. -FUi386 /units/x86_64-win64 -dRELEASE -di386 -dGDB -dBROWSERLOG -Fux86 pp.pas fpcdefs.inc(160,2) Error: User defined: