On 10 Aug, Yukihiro Matsumoto wrote: > Hi, > > In message "[ruby-talk:00600] A `File' is not a `IO'?????" > on 99/08/10, clemens.hintze / alcatel.de <clemens.hintze / alcatel.de> writes: > > |Within the method I have checked with `fileclass.is_a? IO' and got a > |`false'????? > > Why not? File (the class object) is not an instance of the IO class, > but an instance of the class named Class. Maybe you misunderstood the > meaning of `is_a?'. Perhaps! :-) I was thinking, that both should be true: (1) A `File' is an `IO' (2) An instance of a `File' is therefore also an instance of a `IO'. Short: An instance of `File' is_a `File' and an `IO' > > `is_a?' is for the check whether the receiver is an instance of the > argument class. Okay! > > |`File.ancestors.include? IO' very much. But that's me, perhaps... ;-) > > Hmm, me neither. Try `IO > File', which maybe a little bit better. That's cool! :-))) I have found it in the Module description right now :-( Perhaps it would not be to unclever to mention it under `Class' too :-) > > matz. \cle PS: I have tried your patches yesterday. Thanks for the fast response. These patches are for Ruby 1.3.7, aren't they? I have tried to put them into 1.3.6 and they have not worked very well :-}