From: Robert Dober Date: 2007-08-13T06:34:54+09:00 Subject: Fwd: Prototype (the real thing from Ara) problem. Hi list after my primitive research and my *very slow* implementation of Prototypes I thought it would be a good idea to check out the real thing and to link to it from my blog, turns out I cannot run it :(. I got the same problem on Linux as on Windows with a Gem install 1.8.6 pl 0, 502/2 > irb irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'prototype' => true irb(main):003:0> p = Prototype.new{ irb(main):004:1* @a = 42 irb(main):005:1> } NameError: `@==' is not allowed as an instance variable name from /usr/local/lib/ruby/gems/1.8/gems/prototype-2.0.0/lib/prototype.rb:122:in `instance_variable_set' from /usr/local/lib/ruby/gems/1.8/gems/prototype-2.0.0/lib/prototype.rb:122:in `call' from /usr/local/lib/ruby/gems/1.8/gems/prototype-2.0.0/lib/prototype.rb:122:in `__call__' from /usr/local/lib/ruby/gems/1.8/gems/prototype-2.0.0/lib/prototype.rb:151:in `method_missing' from /usr/local/lib/ruby/gems/1.8/gems/attributes-3.5.0/lib/attributes.rb:55:in `attribute_list' from /usr/local/lib/ruby/gems/1.8/gems/attributes-3.5.0/lib/attributes.rb:58:in `__attribute_list__' from /usr/local/lib/ruby/gems/1.8/gems/attributes-3.5.0/lib/attributes.rb:58:in `attributes' from /usr/local/lib/ruby/gems/1.8/gems/attributes-3.5.0/lib/attributes.rb:41:in `attributes' from /usr/local/lib/ruby/gems/1.8/gems/attributes-3.5.0/lib/attributes.rb:15:in `each' from /usr/local/lib/ruby/gems/1.8/gems/attributes-3.5.0/lib/attributes.rb:15:in `attributes' from /usr/local/lib/ruby/gems/1.8/gems/prototype-2.0.0/lib/prototype.rb:122:in `call' from /usr/local/lib/ruby/gems/1.8/gems/prototype-2.0.0/lib/prototype.rb:122:in `__call__' from /usr/local/lib/ruby/gems/1.8/gems/prototype-2.0.0/lib/prototype.rb:169:in `context' from /usr/local/lib/ruby/gems/1.8/gems/prototype-2.0.0/lib/prototype.rb:164:in `each' from /usr/local/lib/ruby/gems/1.8/gems/prototype-2.0.0/lib/prototype.rb:164:in `context' from /usr/local/lib/ruby/gems/1.8/gems/prototype-2.0.0/lib/prototype.rb:122:in `module_eval' from /usr/local/lib/ruby/gems/1.8/gems/prototype-2.0.0/lib/prototype.rb:122:in `call' from /usr/local/lib/ruby/gems/1.8/gems/prototype-2.0.0/lib/prototype.rb:122:in `__call__' from /usr/local/lib/ruby/gems/1.8/gems/prototype-2.0.0/lib/prototype.rb:161:in `context' from /usr/local/lib/ruby/gems/1.8/gems/prototype-2.0.0/lib/prototype.rb:68:in `prototyping' from /usr/local/lib/ruby/gems/1.8/gems/prototype-2.0.0/lib/prototype.rb:41:in `new' from (irb):3irb(main):006:0> irb(main):007:0* irb(main):008:0* irb(main):009:0* quit It is not an irb issue tested with a source file too:( Did I do something stupid? Thx in advance Robert -- [...] as simple as possible, but no simpler. -- Attributed to Albert Einstein