Log In  

This crashes:

function t()
  return
end

print(t())

I'm not sure how Lua describes this in language terms. The spec doesn't have much to say about returning no values; it's not a nil or table. (An empty list?) Lua 5.3.1 just prints an empty value.

This is Pico-8 0.1.3.

P#15621 2015-10-19 23:59 ( Edited 2015-10-20 22:22)

it's basically the same as running print() which crashes too =(
seems like a bug in pico8's print function.

P#15622 2015-10-20 00:54 ( Edited 2015-10-20 04:54)

Ah, yeah. :)

P#15626 2015-10-20 03:23 ( Edited 2015-10-20 07:23)

Thanks -- fixed for 0.1.4

P#15651 2015-10-20 18:22 ( Edited 2015-10-20 22:22)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 10:18:02 | 0.006s | Q:15