[#539] A new discussion topic ;-) — Clemens Hintze <c.hintze@...>
Hi all,
[#546] Question concerning modules (1) — clemens.hintze@...
[#548] Bug: concerning Modules! — clemens.hintze@...
[#564] Ruby 1.3.7 — Yukihiro Matsumoto <matz@...>
Ruby 1.3.7 is out, check out:
[#567] New feature request! :-) — clemens.hintze@...
On 6 Aug, Yukihiro Matsumoto wrote:
Hi,
On 6 Aug, Yukihiro Matsumoto wrote:
[#590] Bug in Array#clone! — clemens.hintze@...
Hi,
Hi,
[#600] A `File' is not a `IO'????? — clemens.hintze@...
Hi,
On 10 Aug, Yukihiro Matsumoto wrote:
Hi,
Hi,
Hi,
On 11 Aug, GOTO Kentaro wrote:
Hi,
On 11 Aug, Yukihiro Matsumoto wrote:
Hi,
[#607] How to pass by `new' method of superclass? — clemens.hintze@...
[#626] Next misbehavior (sorry :-) — clemens.hintze@...
Hi,
[#634] ANN: testsupp.rb 0.1 — Clemens Hintze <c.hintze@...>
Hi,
[#637] Backtrace of SIGSEGV — Clemens Hintze <c.hintze@...>
Hi,
Hi,
On 12 Aug, Yukihiro Matsumoto wrote:
Hi,
On 12 Aug, Yukihiro Matsumoto wrote:
Hi,
[#655] Your wish is fulfilled (erhm, almost ;-) — Clemens Hintze <c.hintze@...>
Hi Gotoken,
[#667] How do I use `callcc' — Clemens Hintze <c.hintze@...>
Hi,
[#668] Way to intercept method calls? — Clemens Hintze <c.hintze@...>
Hi,
[#679] Documentation about RD? — Clemens Hintze <c.hintze@...>
Hi,
=begin
On 18 Aug, Toshiro Kuwabara wrote:
Hi,
On 18 Aug, GOTO Kentaro wrote:
Hi,
On 19 Aug, Toshiro Kuwabara wrote:
Hi,
On 19 Aug, Toshiro Kuwabara wrote:
Hi,
Hi,
On 19 Aug, Toshiro Kuwabara wrote:
Hi
Hi,
Hi,
Hi Tosh and all,
Hi,
Hi,
Hi,
Hi,
Hi,
Hi,
Hi,
Hi,
Hi,
On 19 Aug, Yukihiro Matsumoto wrote:
Hi,
On 20 Aug, Toshiro Kuwabara wrote:
Hi,
On 21 Aug, Toshiro Kuwabara wrote:
Hi,
On 21 Aug, Toshiro Kuwabara wrote:
Hi,
Hi,
Hi,
On 24 Aug, Toshiro Kuwabara wrote:
Hi,
I thought people might be interested in this. Here's how I am plugging
On 31 Aug, Jonathan Aseltine wrote:
[#737] RD with multi charset — Minero Aoki <aamine@...>
Hi, I'm Minero Aoki. This is my first mail in this mailling list.
Hi,
Hi,
Hi,
Hi,
On 28 Aug, Minero Aoki wrote:
Hi,
[ruby-talk:00609] Re: How to pass by `new' method of superclass ?
On 10 Aug, Yukihiro Matsumoto wrote: > Hi, > > In message "[ruby-talk:00607] How to pass by `new' method of superclass?" > on 99/08/10, clemens.hintze@alcatel.de <clemens.hintze@alcatel.de> writes: > > |I try to assimilate Python's `StringIO' class to Ruby. Now I want to > |derive `StringIO' from `IO'. So that > | > | StringIO.new.is_a? IO > > Do you really need inheritance relationship? Current Ruby requires > instances of the subclass of IO to have T_FILE structure. I don't know really. I would like it, as there may be methods, that wants to get an `IO' or a `File' instance. `mailread.rb' comes in mind (I know it is fixed yet :-) It would be nice to cheat them, and give them a `StringIO' instance instead of a `File' one. Of course, there will arise problems, if the method use the `fileno' method somehow! But perhaps if that happen, I could create a file on-the-fly, put the `StringIO' instance contents into it, and work forth as a normal file, which will be deleted after close.... :-/ That could be a good idea, couldn't it? Nevertheless, is there such a method to by-pass the `new' method of a parent? > > With dynamic typing feature, defining all the methods which IO has in > StringIO is sufficient enough, isn't it? There's no problem among > Ruby level, right? Normally not! Only if a method insists on objects beeing instances of IO. > > The method I can think of receiving IO instance (T_FILE object) as > arguments is IO::select, which of cource can't handle StringIO. But it would use `fileno' and therefore I can create a file on-the-fly? If not, overwriting select should be enough, shouldn't it? > > matz. \cle