sjbarag / brs

An interpreter for the BrightScript language that runs on non-Roku platforms.
MIT License
114 stars 43 forks source link

Implement the same 'typecasting' as on Roku #609

Closed vbuchii closed 3 years ago

vbuchii commented 3 years ago

In interpreter, we can't pass double, longInteger if the declared argument type is integer , also we can not cast double to float, longInteger to float, integer to double, longinteger to double. On Roku all types among themselves compatible. Please see #600 for more context.

sjbarag commented 3 years ago

Critically, this includes comparisons with RoLongInteger as well.

sjbarag commented 3 years ago

Forgot to link this to #620 before I merged!