[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: newbie prob with 'require'
- From: "Dolan, Ryanne Thomas (UMR-Student)" <rtdmr6@...>
- Date: Sat, 13 May 2006 13:08:13 -0500
You are not talking nonsense. The namespace problem is inherent in the new module system. The require function basically adds the module's table to the current environment; it does not provide a method for assigning a name to this table before it is created.
-----Original Message-----
From: lua-bounces@bazar2.conectiva.com.br on behalf of Damian Stewart
Sent: Sat 5/13/2006 2:34 AM
To: Lua list
Subject: Re: newbie prob with 'require'
Dolan, Ryanne Thomas (UMR-Student) wrote:
> Your first line is setting osc = true, since require "osc" returns true.
>
> require "osc";
> ...
so the namespacing system has changed some time in the last little while
then? i have calls like osc.parseMessage(...) which cause errors because
osc is now nil. dropping the osc. from the start makes them work but
presumably means i have a cluttered namespace..? or is this not a
problem and am i talking nonsense?
--
f r e y
live music with computers
http://www.frey.co.nz
<<winmail.dat>>