[lazarus] Parameter and property names

Michael Van Canneyt michael.vancanneyt at wisa.be
Mon Mar 20 06:22:46 EST 2000


Hello,

It shouldnow be possible to use a parameter with the same name as a property.

So things like

  TComponent = Class(TPersistent)
    Procedure SetName(Name : String);
    Property Name : String Read FName write SetName;
  end;
  
Should now work with the -Sd switch, for Delphi compatibility.
Which doesn't mean that you should use it.
It's still bad programming, IMHO, but can be used for porting Delphi code.

Michael.






More information about the Lazarus mailing list