[fpc-devel] Re: Debugger for FPC
Michael Van Canneyt
michael at freepascal.org
Sat Mar 14 11:52:47 CET 2009
On Sat, 14 Mar 2009, Jonas Maebe wrote:
> 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)
The watches window shows 'Cannot read a write-only property'.
More information about the fpc-devel