[fpc-pascal] Re: Duplicate Identifier

Noa Shiruba shiruba at galapagossoftware.com
Thu Mar 1 09:27:54 CET 2012


Sven,

No, I used it only in TW var section of various methods as a temporary structure.  I should note that this compiled in FPC 2.4 fine.

(that said, the source code in question is quite messy...)

-- Noah 

On 2012/03/01, at 16:17, Sven Barth <pascaldragon at googlemail.com> wrote:

> Am 01.03.2012 03:35, schrieb Noah Silva:
>> Hi leledumbo,
>> 
>> (Changing the topic to indicate OT)
>> 
>> I didn't really take time to figure out whether it "should" be happening
>> or not, I just changed the references not to conflict.  If you are
>> interested, though, I reproduced it in the screenshot below for you:
>> 
>> https://picasaweb.google.com/lh/photo/qXJYu68KE20oWWM2loKWTtMTjNZETYmyPJy0liipFm0?feat=directlink
> 
> Hmm. Did you use "Tile" as a field or property of the class TfrmMap already? Then this is expected, because FPC will in non-Delphi modes error if you reuse an identifier, which is already used as a field or property, as a type or local parameter of a method that belongs to the same class.
> 
> Regards,
> Sven
> 
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal



More information about the fpc-pascal mailing list