Am 15.03.2010 16:23, schrieb Jonas Maebe: > > 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. >
If it makes sense or not - I get the same error in delphi mode. Adrian. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal