jzrake/lunar — Issue #3: order of complex operands matters
Author: jzrake
Created: 2012-01-30 21:24:17+00:00
State: open

Arithmetic works incorrectly between complex and array when the complex number comes first, but correctly when it comes after the array:

print(lunar.I + lunar.range(10)) -- > 0+1j
print(lunar.range(10) + lunar.I) -- > [ 0+1j, 1+1j, 2+1j, 3+1j, 4+1j, 5+1j, 6+1j, 7+1j, 8+1j, 9+1j ]