[antlr-interest] Help w/ Function Overloading
Paul Johnson
gt54-antlr at cyconix.com
Tue Aug 9 08:10:01 PDT 2005
Peggy Fieland wrote:
> Bryan,
>
> How about the c++ scheme, which ties the function
> signature to the return type and the types of the
> parameters (mangling/demangling)?
<pedantic>
C++ doesn't actually consider the return type.
</pedantic>
I have a scheme where the number of formal parameters is appended to the
function name to give a signature for the symbol table lookup. This
handles pretty much all the complexity required for overloading in my
case, but it's a pretty simple language.
Paul
More information about the antlr-interest
mailing list