[antlr-interest] Help w/ Function Overloading
Peggy Fieland
madcapmaggie at yahoo.com
Tue Aug 9 08:26:49 PDT 2005
--- Paul Johnson <gt54-antlr at cyconix.com> wrote:
> Peggy Fieland wrote:
>
> <pedantic>
> C++ doesn't actually consider the return type.
> </pedantic>
>
<grin> Right <goes off to get another cup of coffee>
> 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
>
>
The c++/g++ is considerably more complicated -- the
types of all the parameters are encoded -- take a look
at the GNUcode for c++filt ( part of binutils) or gcc
itself.
Peggy
More information about the antlr-interest
mailing list