You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function sendInt(i : Int16) do
var hundreds : Int8 = i / 100
i = i - (100 * hundreds)
var tens : Int8 = i / 10
i = i - (10 * tens)
harness!testOut( intToChar(hundreds) )
harness!testOut( intToChar(tens) )
harness!testOut( intToChar(i) )
end
It seems that ThingML allows i to be modified. But It seems the Scala compiler assumes i cannot be modified, where the C compiler allows it.
Should it really be legal in ThingML? Or is it a but in the Scala compiler?
The text was updated successfully, but these errors were encountered:
We have a test:
It seems that ThingML allows
i
to be modified. But It seems the Scala compiler assumesi
cannot be modified, where the C compiler allows it.Should it really be legal in ThingML? Or is it a but in the Scala compiler?
The text was updated successfully, but these errors were encountered: