[fpc-devel] Re: Debugger for FPC
Jonas Maebe
jonas.maebe at elis.ugent.be
Sat Mar 14 11:41:33 CET 2009
On 14 Mar 2009, at 11:32, Luca Olivetti wrote:
> El Sat, 14 Mar 2009 10:42:14 +0100
> Florian Klaempfl <florian at freepascal.org> escribió:
>
>>> a) a property without a read specifier, but with a write specifier
>>> going directly to a field? Nothing, or that field?
>>
>> Nothing. This property is not readable.
>
> It's not readable by the users of the class, but it should be readable
> to someone debugging it.
The field it refers to is readable in any case. The question is
whether they should also be able to use something like "print
write_only_property". Moreover, once support for calling getters/
setters is implemented, for consistency purposes a write-only property
with a setter should then also be printable. However, there is not way
to do that, since you cannot do "print property_setter" (since a
setter does not return any value).
But maybe it's easier to ask the usual question: wddd? (what does
Delphi do)
Jonas
More information about the fpc-devel
mailing list