[Lazarus] constant propertuies / function[Re: properties (delphi does it wrong too) [Re: debugger feature request created]]

Alexander Klenin klenin at gmail.com
Sat Oct 3 00:10:20 CEST 2009


On Sat, Oct 3, 2009 at 08:13, Martin <lazarus at mfriebe.de> wrote:
>> Right. A C++ style "const" attribute were helpful, in order to distinguish
>> between mere "inspectors" and other getters that change the state of an
>> object. Or we could add an "inspect" directive to the property "read" and
>> "write" directives...
>>
>>  "property" ... "read" GetProp ["const"] ["inspect" SeeProp] ...
>
> That would certainly have a positive side effect here. It would be much more
> interesting for code optimisation by the compiler....

Or compiler could deduce this attribute itself and store it in debug info.

-- 
Alexander S. Klenin




More information about the Lazarus mailing list