This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Can we prefix with module names?


On 27 Jan 2001, Per Bothner wrote:

> Jocelyn Paine <popx@pop3.ifs.org.uk> writes:
> 
> > Does Kawa make it possible to prefix the names of things exported
> > from modules with the module name? I have several modules in which
> > it would be natural, for example, to define an operation called 'get'.
> > Rather than replacing each 'get' identifier with a name such as
> > 'get-from-map' (which becomes cumbersome if applied consistently
> > throughout the module), I'd like just to use the module name for
> > disambiguation when calling the function from outside.
> 
> My intention was that you should be able to do:
> 
> ((map 'get) args ...)
> 
> But that assumes module "values", which are only partially supported.
>
Could the module values be represented as the module classes? E.g.
in my example, where we've assumed that the function 'get' is exported
from module 'map', (invoke-static <kb7.structures.Map> 'get arg ...) has
the correct effect. Presumably one could invent a syntax for this to tell
the compiler that it's a special case.

 -- 
> 	--Per Bothner
> per@bothner.com   http://www.bothner.com/~per/
> 

Jocelyn Paine


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]