Brent Dax <[EMAIL PROTECTED]> wrote:
> Leopold Toetsch:
> # I'm not outerly sure, if imcc should even have such a functionality.
> Or
> # at least, if there is one, it should be configurable. The name
> mangling
> # is HLL dependent and there may be no general scheme to do it right for
> # all kind of symbols.
> Then allow a few more symbols in identifiers, and turn namespace into a
> prefixing thing that applies to all identifiers:
> .namespace Foo::
> .sub bar #really Foo::bar
What about lexical names? Scopes? I think all IDs that should be
mangled would need some kind of hint, that they are really subject of
mangling.
.namespace 1 "Foo::"
.namespace 2 "_Foo::"
.mangle sub 1
.mangle global 2
.sub bar # Foo::bar
.global a # _Foo::a
# how to generate @Foo::a and $Foo::a?
If the HLL is integrated we could use callbacks to deal with that mess.
leo