[Lazarus] Rescan FPC sources crashes Lazarus
Marco van de Voort
marcov at stack.nl
Sat Mar 26 15:29:31 CET 2011
On Sat, Mar 26, 2011 at 11:55:28AM +0100, Mattias Gaertner wrote:
> > I have to partially agree with Graeme on this point, especially that
> > this package was ported from Delphi. The symptoms were on the surface
> > unrelated to the cause. I had to debug for quite a while until I
> > stumbled upon the culprit IsMultiThread assignment buried deep within
> > 10-15 units. A compile time 'read only' error would have saved me a lot
> > of grief.
>
> The joke was to use a function.
> A read only property would be nice and a separate procedure to set it.
> But I don't know if this is compatible. A function is not compatible
> too.
Not always. Roughly it is the same difference as between a field and a
property. A field/variable allows to take the address (and thus pass to VAR
parameters), properties (class or global) and functions don't.
Still, I think this is much ado about nothing.
More information about the Lazarus
mailing list