From: ara.t.howard@... Date: 2006-08-11T00:14:32+09:00 Subject: Re: Adding MonitorMixin causes compile failure when initialize takes a parameter On Fri, 11 Aug 2006, Scott wrote: > Hi, I am a relative newbie in Ruby and I need to do some simple thread > based programs. > In the new pickaxe book I saw this code for enabling a synchronized > block using a MonitorMixin > > require 'monitor' > > class Counter > include MonitorMixin > attr_reader :count > def initialize > @count = 0 > super ^^^^^ ^^^^^ this implies super(*anyargs, &anyblock) to call with zero args use 'super()' -a -- to foster inner awareness, introspection, and reasoning is more efficient than meditation and prayer. - h.h. the 14th dali lama