lua-users home
lua-l archive

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


    I'm testing Lua, and I have a newbie question: Why luac.lua (in test
directory) output incomplete file?
    If I compile the file with "..\bin\luac xxx.lua" and then I execute
"..\bin\lua luac.out", it run ok, but if I compile with "..\bin\lua luac.lua
xxx.lua", then execute with "..\bin\lua luac.out", the interpreter says:
    "G:\BIN\LUA.EXE: unexpected end of file in luac.out"
    In my opinion it is supposed to output the same code, what is the
problem/difference between luac.exe/luac.lua? (Why luac.lua isn't dumping
the same info.)

                            Thank you for reading,