[#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:00540] Re: A new discussion topic ;-)
Hi,
From: Clemens Hintze <c.hintze@gmx.net>
Subject: [ruby-talk:00539] A new discussion topic ;-)
Date: Sun, 1 Aug 1999 12:41:15 +0200
[snip]
>
> What do you think?
>
> I think the Self approach is a great idea. There are no classes
> anymore. Only objects. Every object could be used to build
> instances. Objects without inheriting from others, could be seen as
> Ruby `Modules'. Objects, inheriting from `Cloneable' could be used
> directly, but could also build new instances like a class in Ruby.
>
> As I have already said, it is not a real proposal. But I would like to
> know, what would you think about a language with Ruby's syntax but a
> OOP concept like the explained above. Would you like such a language?
In Ruby, we use class and Mix-in structures. Now I get used to love
it, and so can't imagine whether or not Self's way is suit for me.
But there is one thing I had thought of, that is `temporal extend'.
In Self, objects have instance variables, and methods wrap them --I
feel they are separated--. In contrast with Self, Ruby's methods and
instance vars are very strongly connected, I feel, except for the case
of Mix-in modules.
This reminds me the temporal extend:
class Self ; def initialize(&blk); instance_eval(&blk) if blk end end
module Foo
def say_hello(name); print "#{@greeting} #{name}\n" end
end
bar = Self.new do
@greeting = "Hello"
class << self
def say_hello!(name)
extend(Foo)
say_hello(name)
end
def say_hello?(name)
temporal_extend(Foo) do
say_hello(name)
end
end
end
end
This is a little like Self's way, isn't it... Now `extend' is
available in Ruby, but it leaves side effects. Methods are overrided.
So I thought of temporal one, leaves no side effects.
Sorry, maybe your point is classes, and this is not. However, in the
case `temporal extend' is in need, Self's way is also useful, I think.
(and vice versa ?)
Thanks,
--
sorry for my broken english
best regards
Kazuhiro HIWADA (hiwada@kuee.kyoto-u.ac.jp)