[fpc-pascal] parameter names local, global, glocal

Micha Nelissen micha at neli.hopto.org
Wed Jan 18 21:40:53 CET 2006


On Wed, 18 Jan 2006 13:39:21 -0700
L505 <fpc505 at z505.com> wrote:

> > Conclusion: never call any parameter of any procedure or function exactly
> > like any property of any class and its ancestors. So far I thought,
> > parameter names of functions and procedures are always local, i.e. valid
> > for this function or procedure block only. Is this a bug or feature of FPC
> > vs. Delphi?
> 
> 
> I've seen this before while doing ports from delphi to freepascal. What I did, just
> to get it quickly working,  was use the underscore, although a bit messy looking:
> 
>   function SubstringData(const Offset, Count_: Integer): WideString; virtual;

Prefixing an 'A' seems to be an (un)official delphi naming convention:

function SubstringData(const AOffset, ACount: Integer): WideString; virtual;

Micha



More information about the fpc-pascal mailing list