[fpc-pascal] fpGUI Toolkit v0.7-rc1 for FPC 2.4
Adrian Veith
adrian at veith-system.de
Mon Mar 15 16:38:19 CET 2010
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.
More information about the fpc-pascal
mailing list