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]
Other format: [Raw text]

RE: Class types


Chris,

I guess you try to obtain the Java class object corresponding to a Kawa
class.

Have you tried something like that:

(define (foo)
  (invoke (as <gnu.bytecode.ClassType> <java.util.Date>) 'getClass))


Dominique Boucher, Ph.D.
Lead Developer
Nü Écho Inc
www.nuecho.com 
 

> -----Original Message-----
> From: kawa-owner@sources.redhat.com
> [mailto:kawa-owner@sources.redhat.com] On Behalf Of Chris Dean
> Sent: 13 mai 2004 03:09
> To: Kawa List
> Subject: Class types
> 
> 
> How do I get the class of a Java type without generating a warning?
> This, for example, gives a warning:
> 
>   (define (foo)
>     (invoke <java.util.Date> 'getClass))
> 
>   % java kawa.repl --warn-undefined-variable -C Foo.scm
>   (compiling Foo.scm)
>   Foo.scm:11:11: warning - no declaration seen for <java.util.Date>
> 
> Regards,
> Chris Dean
> 



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