From: Ken Bloom Date: 2009-10-02T12:08:31+09:00 Subject: Re: Monitors on data structures On Fri, 02 Oct 2009 07:49:40 +0900, Russell Fulton wrote: > Ken Bloom wrote: >> On Thu, 01 Oct 2009 08:22:26 +0900, Russell Fulton wrote: >> >>> callback routine. I have made a class AddressList: >>> synchronise do # make sure we don't clobber another thread >>> block. >>> return unless host.status == 'up' >>> does :) >>> >>> BTW I do have this program working without treads but I want to know >>> why this does not work ! >>> >>> >>> Russell >> >> synchronize is spelled with a z. You misspelled it in the example you >> posted here. Is it possible that you misspelled it in your actual code, >> and the NoMethodError is being raised in a place where it doesn't >> generate output to alert you to the problem? > > Of course. American spelling, sigh... > > Yup! that fixed it! Thanks very much Ken > > Need a "pragma: Ex British Empire" :) :) > > I wonder why the NoMethodError does not appear? I guess threads just supress them in general. irb(main):001:0> Thread.start{raise NoMethodError} => # irb(main):002:0> -- Chanoch (Ken) Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/