From: Sean O'Dell Date: 2004-06-26T01:55:35+09:00 Subject: Re: Is it considered Harmful? On Friday 25 June 2004 09:51, Dave Thomas wrote: > On Jun 25, 2004, at 11:44, Sean O'Dell wrote: > >> How would you handle > >> a = /cat/ > >> a.class = File > >> a.read > > > > How is that any different from: > > > > class Regexp > > include Enumerable > > end > > Modules (such as Enumerable) only add methods. Classes also have state. > > Again, how would the File example work? a.read would do what #read does when it can't read because there's no open file. What does #read do now when it encounters an error it can't handle? Raise an exception? Sean O'Dell