tovector(nil), toquaternion(nil), and touuid(nil) should return nil
planned
Tapple Gao
tovector(nil)
, toquaternion(nil)
, and touuid(nil)
should return nil
, just like tonumber(nil)
:> tonumber(nil)
nil
> tovector(nil)
stdin:1: unable to cast!
stack backtrace:
[C] function tovector
stdin:1
> toquaternion(nil)
stdin:1: unable to cast!
stack backtrace:
[C] function toquaternion
stdin:1
> touuid(nil)
stdin:1: invalid argument #1 to 'touuid' (string expected, got nil)
stack backtrace:
[C] function touuid
stdin:1
Log In
H
Harold Linden
marked this post as
planned
Thanks for the report! Agreed, they should just return
nil
for any case they can't convert.