Re: [fpc-pascal] Reference Counting

2010-04-04 Thread cobines
2010/4/5 Werner Van Belle : >> Pest was just a reference pointer to the first instance, so no need to >> free it. But setting it to nil after Test was freed is a good habit. >> > I'm not sure that is correct. Once you free Test, Pest still points to > the same non existing object and you can use as

[fpc-pascal] Acitve Object Messaging Library

2010-04-04 Thread Werner Van Belle
Hello, After the couple of questions I had about reference counting and cmpxchg, I can finally share what we have been working on, this would be the eternal gratitude part. A freepascal implementation of active objects. http://werner.yellowcouch.org/Papers/activeobjects/index.html From the abstr

Re: [fpc-pascal] Reference Counting

2010-04-04 Thread Werner Van Belle
Graeme Geldenhuys wrote: >> Test:=nil; >> > > This causes a memory leak - you did not actually free the class > instance. You need to call: Test.Free; > Of course I didn't call free; I was hoping that the reference counter would solve that little problem. If I need to free stuff myself,

Re: [fpc-pascal] Documentation strangeness

2010-04-04 Thread Graeme Geldenhuys
On 4 April 2010 18:21, Michael Van Canneyt wrote: > > The disadvantage being that they are not updated when the documentation > is updated. Luckily (no offence meant) the documentation doesn't change that much or that quickly. I'll probably keep to the same release cycle as FPC - whenever a new F

Re: [fpc-pascal] Documentation strangeness

2010-04-04 Thread Michael Van Canneyt
On Sun, 4 Apr 2010, Graeme Geldenhuys wrote: On 4 April 2010 12:11, Michael Van Canneyt wrote: That depends on the PDF reader. Searching is virtually instantaneous on Mac OS X with its default PDF reader (but it's indeed fairly slow with at least Acrobat Reader). I guess Mac has better PD

Re: [fpc-pascal] Documentation strangeness

2010-04-04 Thread Graeme Geldenhuys
On 4 April 2010 12:11, Michael Van Canneyt wrote: >> >> That depends on the PDF reader. Searching is virtually instantaneous on >> Mac OS X with its default PDF reader (but it's indeed fairly slow with at >> least Acrobat Reader). I guess Mac has better PDF support than any other platform. Acroba

Re: [fpc-pascal] Documentation strangeness

2010-04-04 Thread Graeme Geldenhuys
On 4 April 2010 12:24, Michael Van Canneyt wrote: > > The community version ("with comments") should be simply deleted; it causes > only confusion and more work without any benefit. +1 for the confusion bit. > I have removed the links to them. A good decision. -- Regards, - Graeme - ___

Re: [fpc-pascal] Reference Counting

2010-04-04 Thread Paul Ishenin
04.04.2010 22:53, Zaher Dirkey wrote: But he must use variable of interface to use TInterfacedObject not variable of TObject to take this advantage (if i am not wrong). You are not wrong. Best regards, Paul Ishenin. ___ fpc-pascal maillist - fpc-pas

Re: [fpc-pascal] Reference Counting

2010-04-04 Thread Zaher Dirkey
On Sat, Apr 3, 2010 at 10:59 PM, Graeme Geldenhuys wrote: > On 3 April 2010 21:01, Werner Van Belle wrote: > If you wanted real reference counted objects that gets freed > automatically when nothing is referencing it, then create a descendant > of TInterfacedObject. > > But he must use variable

Re: [fpc-pascal] Documentation strangeness

2010-04-04 Thread John Coppens
On Sun, 4 Apr 2010 12:24:36 +0200 (CEST) Michael Van Canneyt wrote: > The community version ("with comments") should be simply deleted; > it causes only confusion and more work without any benefit. > > I have removed the links to them. Proof of concept: I hadn't found the 'good' one - just the

Re: [fpc-pascal] Documentation strangeness

2010-04-04 Thread Michael Van Canneyt
On Sun, 4 Apr 2010, John Coppens wrote: On Sat, 3 Apr 2010 20:36:56 +0200 (CEST) mar...@stack.nl (Marco van de Voort) wrote: The refered documentation (on the FPC community server) is from 2006: Reference guide for Free Pascal, version 2.2 Document version 2.0 August 2006 Yep... But that

Re: [fpc-pascal] Documentation strangeness

2010-04-04 Thread Michael Van Canneyt
On Sun, 4 Apr 2010, Jonas Maebe wrote: On 03 Apr 2010, at 22:48, Graeme Geldenhuys wrote: I must agree. PDF's looks good on paper, but is terrible to search on screen (very slow) That depends on the PDF reader. Searching is virtually instantaneous on Mac OS X with its default PDF reader