From: David Alan Black Date: 2001-11-03T04:54:46+09:00 Subject: [ruby-talk:24194] Re: "yield called out of block" Hello -- On Sat, 3 Nov 2001, Alexander Schofield wrote: > This doesn't really have much to do with the original post, but why not > just completely eliminate the problem and take a cue from Lisp by just > allowing functions to return multiple values? yield could simply have > the same effect as values does in CL. Well, that would leave us needing a new word for what used to be "yield" :-) I don't think that values in CL does what yield does, does it? Wouldn't this (returning multiple values) be closer? def thing return 1,2,3 end In any case, yield and related iterator behavior are very central to Ruby; I doubt they're in flux or under consideration for elimination. At least, I hope not :-) David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav