[#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:00673] Re: How do I use `callcc'
On 17 Aug, Yukihiro Matsumoto wrote:
> Hi,
>
> In message "[ruby-talk:00667] How do I use `callcc'"
> on 99/08/15, Clemens Hintze <c.hintze@gmx.net> writes:
>
[...]
>
> Continuations are say dynamic labels; you can't alter them. But
> using it, you can emulate coroutines. Here's something similar.
[...]
Thanks for the example. Now some things are a lot more clear to me! :-)
>
> By the way, why don't you use thread, instead of emulating coroutine
> by yourself.
Sometimes a coroutine can be of more use than a thread. With coroutines
I can emulate threading with an own scheduler adapted to my needs. So
perhaps Ruby could also have threading even on MSDOS? ;-)))
Furthermore I have not pay too much attention to synchronize issues
with coroutines... Often coroutines are better for RT tasks than
threads, etc. pp. :-)
>
> |I have thougth, the execution would go back till after (1), so that the
> |calculation will be performed, and then the result would be returned.
> |But it seems also to influence the global execution. Because it goes
> |not only back to (1) but back to (2).
>
> As I said before continuations are labels. calling Continuation#call
> jumps into the place where the continuation created.
I have understood that! But not with all consequences. The surprising
fact for me was, that this `dynamic label' would also influence the
state of the level that called the method, that use `callcc
def crea_cont
callcc {|c| return c} # 1
1
end
f = crea_cont # 2
p f
=> #<Continuation:0x3b738>
f.call
p f
=> 1
That means `f.call' was returning to (#1) but after leaving of method
`crea_cont' I was suddenly on (#2), so that `f' was reassigned. That
has astonished me. :-)))))
>
> matz.
\cle