From: Adam Prescott Date: 2011-06-20T23:06:20+09:00 Subject: [ruby-core:37247] Re: [Ruby 1.9 - Bug #4893] Literal Instantiation breaks Object Model On Fri, Jun 17, 2011 at 5:12 PM, Lazaridis Ilias wrote: > "Object Model" as in > > ��* Design and implementation of a programming language's OO behaviour (classes, object, inheritance, mixin, ��methods, attributes, per-instance-behaviour etc.). > > Special part of this language's (ruby) "Object Model" is > > ��* Primitive data types (integer, string, ...) are objects, and have related classes (Integer, String) > ��* Classes (including those of the primitive data types) can be redefined at runtime. > > This is a flexible ability, but it has (in the current implementation) a limitation (essentially a bug): > > ��* Limitation: a redefined initialize method is *not* called during "literal instantiation" > Other than some abstract violation of a model, what problem is this causing? Do you have actual code in a practical situation for which this "limitation" is an obstacle? What would this solve, and what would be its direct, realisable benefit?