[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: newbie prob with 'require'
- From: Damian Stewart <damian@...>
- Date: Sat, 13 May 2006 17:21:24 +1200
ok, i have managed to resurrect the luakit via google's cache, but now
i'm getting another issue. this is the first time i've had to use the
'require' function so it's probably me.
here's what happens:
$ lua test.lua
d:\bin\lua.exe: test.lua:2: attempt to index global `osc' (a boolean value)
test.lua:2: in main chunk
and here's test.lua:
1| osc = require( 'osc' )
2| p = osc.Message:new()
3| p.address = '/in/foo'
should osc.lua be returning something? reading the documentation it
looks like it's supposed to just return true or false. if i say
'print(osc)' i get 'true' printed out. so what else might be wrong?
f r e y
live music with computers