Re: [fpc-pascal] Unexpected duplicate identifiers

2008-12-22 Thread Mark Morgan Lloyd
Mattias Gärtner wrote: fix <> workaround ;) [GRIN] At least nobody's shot me down in flames telling me that Pascal /has/ to work that way :-) Just found somewhere that I was applying trim() to a character variable- not quite sure I meant to do that and FPC scores over Delphi in picking it

Re: [fpc-pascal] Unexpected duplicate identifiers

2008-12-22 Thread Mattias Gärtner
Zitat von Mark Morgan Lloyd : > dhkblas...@zeelandnet.nl wrote: > > >> FPC 2.2.0 is giving me duplicate identifier errors for "sort" and > >> "strings" above. > > > Add {$mode delphi} to the top of your unit. ObjFPC mode is more strict. > > Thanks, I think that fixes it although I'm still working

Re: [fpc-pascal] Unexpected duplicate identifiers

2008-12-22 Thread Mark Morgan Lloyd
dhkblas...@zeelandnet.nl wrote: FPC 2.2.0 is giving me duplicate identifier errors for "sort" and "strings" above. Add {$mode delphi} to the top of your unit. ObjFPC mode is more strict. Thanks, I think that fixes it although I'm still working through the affected unit. I presume I'm cor

Re: [fpc-pascal] Unexpected duplicate identifiers

2008-12-22 Thread dhkblaszyk
> I've got a class that looks in part like this: > > TTextStore= CLASS(TStringList) > PRIVATE >PROCEDURE NeverSort(sort: BOOLEAN); > PUBLIC >FUNCTION HereDocument(CONST name: STRING; VAR strings: > TStringList): BOOLEAN; >PRO

[fpc-pascal] Unexpected duplicate identifiers

2008-12-22 Thread Mark Morgan Lloyd
I've got a class that looks in part like this: TTextStore= CLASS(TStringList) PRIVATE PROCEDURE NeverSort(sort: BOOLEAN); PUBLIC FUNCTION HereDocument(CONST name: STRING; VAR strings: TStringList): BOOLEAN; PROCEDURE Sort; OVERRI