From: Bob Alexander Date: 2002-01-26T13:54:10+09:00 Subject: Re: Subrange of String subclass => invalid object "Chr. Rippel" wrote: > Meaning this violates YMPOLS (your and my POLS;-). Actually a heavily > championed and accepted recent RCR www.rubygarden.org/article.php?sid=104 > is probably responsible for this sneaky type attack. > A general way of dealing with these issues would be the introduction of a > general #become framework - an interesting pointer is [ruby-talk:19856]. Thanks for the pointers. I read those, and saw no mention of the fact that String and Array returning uninitialized instances of a subclass creates invalid objects. The focus seemed to be on trivial subclasses that simply added methods but no state, where no subclass initialization needs to be done. Bob