lua-users home
lua-l archive

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


Hello all,

I ran into a rather silly problem with Lua 5.0 work 0. I don't seem to be
able to load a .lua file.

In 4.1w4 I would do this:

    dofile("scheduler.lua")

Since dofile is not implemented in 5.0w0, I tried loadfile:

    loadfile("scheduler.lua")

This executes with no error, but does NOT load the file (!).

I also tried require:

    require("scheduler.lua")

And got this error message:

    stdin:1: could not load package `scheduler.lua' from path `?.lua'
    stack traceback:
       1-  [C]: in function `require'
       2-  stdin:1: in main chunk

Any idea what I'm doing wrong?

(This is on Windows 2000 Pro, compiled with VC++6.0 and also the same
error appeared when compiled with Bloodsheds Dev-C++ version 4.9.3.0)

  - Tom Wrensch