uiua-lang / uiua

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

Interpreter bug: "° un was not inlined" #482

Closed bkDJ closed 4 months ago

bkDJ commented 4 months ago

Example:

M! ← setinv(^!|°^!)^.

"é"
M!utf
°M!utf

# Error: ° un was not inlined. This is a bug in the interpreter
#  at 1:16
#1 | M! ← setinv(^!|°^!)^.
#                   ─
#  in fn from 1:15 at 1:6

This was working a day or two ago but broke recently.

bkDJ commented 4 months ago

Thanks for the quick fix! But I'm sorry; this still isn't fixed when the setinv nesting parity is even. Should I open another issue?

F! ← setinv(^!|°^!)^.
G ← setinv(∘|°F!utf)

°G [195 169]

#Error: ° un was not inlined. This is a bug in the interpreter
#  at 2:14
#2 | G ← setinv(∘|°F!utf)
#                 ─
#  in fn from 2:13 at 2:5
kaikalii commented 4 months ago

No, I'll take a look.

kaikalii commented 4 months ago

Okay, try it with latest main (15e19ac25f2219fd1f6f)

bkDJ commented 4 months ago

Working as expected now, thanks!