uiua-lang / uiua

A stack-based array programming language
https://www.uiua.org
MIT License
1.51k stars 106 forks source link

Code `°°°/×4` has Error: ° un was not inlined. This is a bug in the interpreter #502

Closed ShawSumma closed 3 months ago

ShawSumma commented 3 months ago

The piece of code °°°/×4 causes a bug in the interpreter.

Error: ° un was not inlined. This is a bug in the interpreter
  at 1:3

It then highlights the third un.

I hope this is not the same as #482

kaikalii commented 3 months ago

I hope this is not the same as #482

While obviously related, the source of this error is different.

The implementation of °°F simply checked that F was invertible before returning F as the inverse. This made °°°F have an uncalculated ° in its instructions. It was an oversight, sorry 😅