yglukhov / jnim

Nim - Java bridge
MIT License
184 stars 13 forks source link

Fancy inheritance for jobject hierarchy #39

Closed yglukhov closed 7 years ago

yglukhov commented 7 years ago

This changes jobject and its subclasses hierarchy to be represented in Nim terms of inheritance. E.g. previously one could implicitly "convert" from jarray to jbyteArray, now he can't. Only vice-versa.

Note that this change might be breaking, if types were misused.