lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi all,

I am curious why 'io.write()' isn't behaving as advertised in lua5.3.*:

```
> io.write("A nice output msg")
A nice output msgfile (0x7f8563013760)
>
```

In particular, notice the "file (...)" bit that gets appended.

This seems a bug, and from what I can tell, it relates to the 'f_tostring' call in 'liolib.c'

I tried the same call in lua5.1.5, and it works as expected:

```
> io.write("A nice output msg")
A nice output msg> 
```

Please advise, thanks!

Warmly,

Aaron Krister Johnson
http://www.untwelve.org