lua-users home
lua-l archive

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


So why does the require() not throw an error as it does
on my install?
DB

On Apr 5, 2005 7:01 AM, Diego Nehab <diego@tecgraf.puc-rio.br> wrote:
> 
> >>> Tested with (Programming in Lua, Chapt.9):
> >>>    require "luasocket"
> >>>    host = "www.w3.org"
> >>>    file = "/TR/REC-html32.html"
> >>>    c = assert(socket.connect(host, 80))
> >>>    c:send("GET " .. file .. " HTTP/1.0\r\n\r\n")
> >>>    c:close()
> >>>
> >>> --> Error: '=' expected near 'c'
> >>
> >> This one I can't see why.
> >
> >       `require"socket"' isn't it?
> >               Tomas
> 
> Right, but that isn't a syntax error! :)
> 
> []s,
> Diego.
>