define namespace question
Per Bothner
per@bothner.com
Sat Dec 20 23:51:00 GMT 2008
Dan Stanger wrote:
> Is it possible to use define-namespace in a hierarchical manner?
> For example I have a java package
> a.b.c, which contains classes X, Y and Z.
> I would like to declare the namespace u and be able to execute
> (define-namespace "a.b.c")
> (let ((x (u:X)) (y (u:Y)) (z (u:Z))
> ...
> Creating new objects x, y and z.
> Is this possible currently in kawa?
Sorry - I overlooked this message when it came in.
The answer is - it doesn't seem to work.
I would like this to work:
(define-alias jutil java.util)
(define x :: jutil:List #!null)
Maybe one day ...
--
--Per Bothner
per@bothner.com http://per.bothner.com/
More information about the Kawa
mailing list