Elias Athanasopoulos
11/13/2003 5:59:00 PM
Hello!
I get:
stress.rb:11:in `Get': can't modify frozen object (TypeError)
when I'm trying to create an object from a class method I have
defined in a ruby extension.
Imagine:
static VALUE cFoo_get(VALUE self)
{
VALUE obj;
...
return cBar_init(obj);
}
I am testong the bahaviour like this:
f = Foo.new
b = f.Get # now b is a new Bar instance?
Any ideas?
TIA,
--
University of Athens I bet the human brain
Physics Department is a kludge --Marvin Minsky