[tng-devel] tmath.is_swig_type fixed!

[ Thread Index | Date Index | More lists.tuxfamily.org/tng-devel Archives ]

The call of

A = tmath.Matrix( { {1,0}, {0,1} } );

should work now.

The reason was a mistake in

tmath.is_swig_type which did not return boolean, but integer

On Lua, the expression 'if (A)' is true if it is an integer (it is not equal to nil), but returns true or false if A is a boolean value. Therefore, tmath.Matrix(table t) always believed it got a table with Matrix objects inside...

Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/