Log In  
Follow
chromosundrift
Follow

all limitations are self-imposed

Cart #19466 | 2016-03-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Zep, I think I have found a bug but I don't know whether you would agree.

First, here's what happens when I type the "dir" in the console:

> dir
directory: /test/
dirtest.p8
dirtest.p8.png

Which is what I expected, only this cart is saved. Here's the code entered into the editor to reproduce this bug:

x=dir()
cls()
print(x)

and the result is it prints (on a clear screen) the following:

nil
dirtest.p8
dirtest.p8.png

I suppose the value of x is nil because dir() doesn't return anything. And I suppose the dir contents are printed after because the threading model is weird.

P#19467 2016-03-29 05:10 ( Edited 2016-05-21 02:30)

Follow Lexaloffle:        
Generated 2020-08-06 01:11 | 0.086s | 2097k | Q:22