Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2010-07

OO rewrite - property syntax

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Hans-Peter Diettrich

The procedure property_dec exists twice, in pdecl.pas and pdecobj.pas.

The pdecobj version seems to handle (old) syntax only, does not accept unit properties nor multiple property declarations. Should it be dropped, in favor of the pdecl version? If not, I'd suggest to rename one of these procedures, to remove any ambiguities.

DoDi

Reply by email

Jonas Maebe
to Hans-Peter Diettrich
Hans-Peter Diettrich wrote
The procedure property_dec exists twice, in pdecl.pas and pdecobj.pas. The pdecobj version seems to handle (old) syntax only, does not accept unit properties nor multiple property declarations.

Neither handles old or new syntax, both simply serve different purposes. The version in pdecl is only for property declarations outside the context of classes/objects. The version in pdecobj is only for properties declared inside classes/objects. Both use the same core functionality (pdecvar.read_property_dec) to actually parse the property declaration.

Should it be dropped, in favor of the pdecl version? If not, I'd suggest to rename one of these procedures, to remove any ambiguities.

It's fine to rename them.

Jonas

Reply by email