Hi,

At Wed, 9 Apr 2003 14:01:59 +0900,
Chris Pine wrote:
> Instead, perhaps:
> 
>   NameError: instance variable names must begin with `@'.
> 
>   NameError: `bar' is not an instance variable name; did you mean `@bar'?

They are precise in your case, but:

$ ruby -e 'instance_variable_set :"@bar...", 15'
-e:1:in `instance_variable_set': `@bar...' is not an instance variable name (NameError)
        from -e:1

> My basic confusion was that I thought the error was saying "`bar' doesn't
> happen to be an instance variable name in this particular object" rather
> than "`bar' is not allowable as an instance variable name, not now, not
> ever."

Isn't it fair enough?

  NameError: `bar' is not allowable as an instance variable name.

-- 
Nobu Nakada