[fpc-pascal] function alias
daniel.mantione at freepascal.org
Sat Oct 6 20:48:33 CEST 2007
Op Sat, 6 Oct 2007, schreef Mattias Gaertner:
> On Thu, 4 Oct 2007 20:17:36 +0200 (CEST)
> Daniël Mantione <daniel.mantione at freepascal.org> wrote:
> > Op Thu, 4 Oct 2007, schreef Mattias Gaertner:
> > > Yes, but I hoped to declare it in situ - without adding another
> > > type. ;) The reason is that I'm auto translating some C headers
> > > that contains aliases for functions.
> > procedure DoAliasSomething(...params...); cdecl; external 'useful';
> > ... is another approach.
> Ok. I implemented that.
> I'm curious: Why does fpc not allow
> const FuncAlias = MyFunc;
It is not part of the Pascal language, not implemented by any other
compiler and nobody ever saw a need to implement such an extension.
More information about the fpc-pascal