Re: [Lazarus] Different "default" value for a property in derivedclass

2013-04-06 Thread Graeme Geldenhuys
Hi Hans-Peter, On 2013-04-06 23:03, Sven Barth wrote: > ones own classes or to build a different GUI toolkit (e.g. in theory > Graeme could use the streaming for fpGUI as well). I consciously decided not to use streaming in fpGUI (but in theory I could have, yes). I do use RTTI in the fpGUI For

Re: [Lazarus] Different "default" value for a property in derivedclass

2013-04-06 Thread Graeme Geldenhuys
On 2013-04-06 18:19, Jether (yahoo) wrote: > This doesn't make any sense to me, TB is descendent of TA, TB should never > affect the behavior of it's ancestror TA. TB doesn't affect the behaviour of TA. TB extends or descends from TA, altering its own behaviour. That is the purpose of descendants

Re: [Lazarus] Different "default" value for a property in derivedclass

2013-04-06 Thread Michael Van Canneyt
On Sat, 6 Apr 2013, Hans-Peter Diettrich wrote: Jether (yahoo) schrieb: This doesn't make any sense to me, TB is descendent of TA, TB should never affect the behavior of it's ancestror TA. Properties are evaluated at compile time. When an object reference is known to be of type TB, the com

Re: [Lazarus] Different "default" value for a property in derivedclass

2013-04-06 Thread Sven Barth
On 06.04.2013 21:23, Hans-Peter Diettrich wrote: Nonetheless I don't understand what initialized properties in non-component classes are good for, together with the observed behaviour of default values. Can somebody point me to the according documentation? Streaming is introduced with TPersis

Re: [Lazarus] Different "default" value for a property in derivedclass

2013-04-06 Thread Hans-Peter Diettrich
Jether (yahoo) schrieb: This doesn't make any sense to me, TB is descendent of TA, TB should never affect the behavior of it's ancestror TA. Properties are evaluated at compile time. When an object reference is known to be of type TB, the compiler uses the getter/setter methods of TB. Noneth

Re: [Lazarus] Different "default" value for a property in derivedclass

2013-04-06 Thread Jether (yahoo)
sunto: Re: [Lazarus] Different "default" value for a property in derivedclass On 4/6/13, Michael Van Canneyt wrote: Just change the default: TB = class(TA) property foo default stB; end; Yes, that did it. I tried something like that, but didn'