[fpc-pascal] alias a function + overload 'in'
Howard Page-Clark
hdpc at talktalk.net
Sun Dec 18 10:13:22 CET 2011
On 18/12/11 5:07, David Emerson wrote:
> 1. Is it possible to make an alias to a function ... so rather than just
> re-calling with the same parameters, it's actually the same thing? like the way
> we can do, e.g., type natural = cardinal, or const GG = 6, but with a function?
There's always the simple-minded calling of identical code such as
function Name: string;
begin
result := 'Name';
end;
function NameAlias: string;
begin
Result := Name;
end;
Perhaps you were looking for something more sophisticated?
More information about the fpc-pascal
mailing list