[#419] Re: Contrast Ruby and Other Languages — Clemens Hintze <clemens.hintze@...>
Hi,
11 messages
1999/11/01
[#925] Re: Anybody knows of an English translation for... — Yasushi Shoji <yashi@...>
I don't have the originally posted mail so its thread is broken but..
4 messages
1999/11/24
[#927] Python complaints — matz@... (Yukihiro Matsumoto)
Hi,
11 messages
1999/11/25
[#930] Re: Python complaints
— gotoken@... (GOTO Kentaro)
1999/11/25
Hi,
[#931] Re: Python complaints
— Clemens Hintze <c.hintze@...>
1999/11/25
GOTO Kentaro writes:
[#937] Re: Python complaints
— William Park <parkw@...>
1999/11/25
On Thu, Nov 25, 1999 at 08:53:08AM +0100, Clemens Hintze wrote:
[ruby-talk:00904] Re: Contrast Ruby and Other Languages
From:
Clemens Hintze <clemens.hintze@...>
Date:
1999-11-03 15:12:36 UTC
List:
ruby-talk #904
Huayin Wang writes:
> >
> > block_given?
> > with_block?
> > has_block?
> > have_block?
>
> how about "accept_block?".
See following code, please ...
def myloop
if accept_block?
while true
yield
end
else
raise SyntaxError, "no block given"
end
end
If I look that code, I have the feeling, that myloop *asks* somehow or
somewhere, if it is permitted to accept a block! That clearly was not
the intention I had writing that method.
Huozhe, ni xiang zenmeyang? :-)
\cle