nil and booleans

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

nil and booleans

Hugo <Nabble>
If you have a Java module with a method that takes a boolean and you call that method from Luan with a nil value, the Java method should be called with "false", not nil. So boolean parameters in Java methods should receive the value converted to boolean instead of throwing an exception.
luan.LuanException: bad argument #6 (boolean expected, got nil)
Reply | Threaded
Open this post in threaded view
|

Re: nil and booleans

fschmidt
Administrator
fixed in rev 96
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: nil and booleans

Hugo <Nabble>
Thanks, closing thread.