From: Emmanuel Touzery Date: 2003-04-18T16:38:29+09:00 Subject: Re: newbie question On Friday 18 of April 2003 09:31, Kent Dahl wrote: > Emmanuel Touzery wrote: > > But it fails, apparently because the parameter for require must > > be CONSTANT: > > > > test.rb:4:in `require': ./myplugins/poptv.rb:1: class/module name must be > > CONSTANT (SyntaxError) > > from test.rb:4 > > from test.rb:1:in `each' > > from test.rb:1 > > > > require ('myplugins/' + plugin).freeze does the same. > > > > any idea? shoud I use something else than 'require'? some form of eval? > > Check out line 1 in poptv.rb. > > My bet is that you have started a class or module name with a lowercase > character. It must be a constant, which means it must begin with an > uppercase character. > > You don't have any problem with require, it just pops up in the > backtrace because it was what prompted the offending file to be parsed. oh, yes, thank you... i was mislead because i was a bit afraid that require would only accept constant parameters even before i tried, so when i saw that, i quickly jumped to conclusions... thank you again :O) emmanuel -- "If there is any kind of God, it's not in you or in me, but in the space between us" -- Celine, "Before Sunrise" (It's not about what you do, it's about what you give.)