Joseph Ryan <[EMAIL PROTECTED]> wrote:
>  From what I understand from the IMCC documentation, the ".namespace"
> macro prepends the namespace name plus "::" to all names within it.

It's for variables only, currently.

> I figured that this would be handy in distinguishing which class a
> method belongs to without causing name clashes.  For instance:

>     .namespace foo
>         .sub bar

> would create a method bar in the class foo, for a full name of
> "foo::bar".

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.

> However, this doesn't seem to work.  Is this a bug, or should I be
> doing something else for this type of problem?

It's not layed out what it should really do. I'm towards removing this
directive and let the HLL compiler deal with it.

Proposals welcome.

> - Joe

leo

Reply via email to