lua-users home
lua-l archive

Re: luaL_loadfilex works fine only once per session under Windows.

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


> Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Rio
> >loadfile()()
> print("Hello,")
> ^Z
> Hello,
> >loadfile()()
> print(" world!")
In Mac OS X (10.7.5), the second loadfile does nothing, which is as
expected, since stdin has already reached EOF by the ^D after the first
loadfile. I've seen programs in Linux being able to read from stdin just
fine after it had reached EOF, but it is not be expected, is it?

AltStyle によって変換されたページ (->オリジナル) /