From: Paul Brannan Date: 2001-12-08T06:45:57+09:00 Subject: [ruby-talk:27864] Re: how comes this works? On Sat, Dec 08, 2001 at 06:20:15AM +0900, Henning von Rosen wrote: > how comes this works? > > def e();yield "block was given!";end > def f();e();end > f(){|o|p o} > > =>"block was given!" > > while this, not surprisingly, does not > > def e(&pr);pr.call("block called");end > def f();e();end > f(){|o|p o} This does not work either: def e(); proc.call "block was given!"; end Paul