You should be able to call your second form:
javaMethod( MyClass )
Gosu does not require the '.class' convention that java does in order to reference a type value.
For example, both of these work fine and print true:
print( java.lang.Object.Type.isAssignableFrom( java.lang.String ) )
// define a simple gosu class
class MyGosuClass {}
print( java.lang.Object.Type.isAssignableFrom( MyGosuClass ) )
Is MyClass a Gosu class or a Java class?
Also, what version of Gosu are you using? (If it is an earlier pre-open source version, the above code might not work.)
Cheers,
Carson
> --
> You received this message because you are subscribed to the Google Groups "gosu-lang" group.
> To post to this group, send email to gosu...@googlegroups.com.
> To unsubscribe from this group, send email to gosu-lang+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/gosu-lang?hl=en.