[fpc-pascal] fpGUI Toolkit v0.7-rc1 for FPC 2.4
Jonas Maebe
jonas.maebe at elis.ugent.be
Mon Mar 15 16:23:14 CET 2010
On 15 Mar 2010, at 16:17, Adrian Veith wrote:
> when compiling uidesigner with actual fpc from svn it fails with
> duplicate identifier "unitname" in vfdfile.pas. It seems to be a name
> clash with the new class procedure unitname in TObject.
http://wiki.freepascal.org/User_Changes_Trunk#TObject_class_declaration
> I don't know why
> fpc raises an error - is there a rule, that a local identifier cannot
> have the same name as a class procedure ? (makes no real sense,
> because
> a class procedure can be accessed via a full qualified name).
It makes sense because that way you can accidentally hide an
identifier, which can result in all sorts of hard to debug behaviour.
It's one of the core differences between objfpc and Delphi mode.
Jonas
More information about the fpc-pascal
mailing list