[Lazarus] Unicode branch
DrDiettrich1 at aol.com
Mon Jul 1 00:30:20 CEST 2013
Florian Klämpfl schrieb:
> Am 30.06.2013 18:25, schrieb Hans-Peter Diettrich:
>> Marco van de Voort schrieb:
>>> On Sat, Jun 29, 2013 at 08:47:37PM -0400, waldo kitty wrote:
>>>>> (Some versions of?) Delphi deallocate interfaces at the end of a
>>>>> block of
>>>>> procedures, not immediately after first usage.
>>>> first usage or last usage?
>>> Last usage of course, sorry.
>> I'm somewhat confused now. When an object has an definite "last use", it
>> should not matter when it is destroyed afterwards, sooner or later.
> It matters when people make assumptions when the a temp. interface is
> released. If the temp. interface is the only left reference to a class
> instance, this means in turn that the class is freed at different points
> thus resulting in different behaviour of the program if the destructor
> of the class has some side effect.
Such coding style is asking for trouble :-(
More information about the Lazarus