From: David Alan Black Date: 2002-01-01T02:04:08+09:00 Subject: [ruby-talk:29870] Re: Proc.class vs yield On Tue, 1 Jan 2002, David Alan Black wrote: > Hmmm... I wonder whether part of what you're not liking is the fact > that the {} operator is overloaded: it's a block constructor and also > a hash constructor. So there needs to be a way to deal with things > like: > > some_method( { "hi" }, { "one" => 1 }, { |x| puts x }) > > not to mention: > > some_method { "hi" } # block or (malformed) hash argument? Whoops, stupid example, since we can already do that and it has a meaning :-) David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav