From: dblack@... Date: 2002-08-29T01:51:49+09:00 Subject: Re: ANN: scanf for Ruby Hi -- On Thu, 29 Aug 2002, Hal E. Fulton wrote: > ----- Original Message ----- > From: "Yukihiro Matsumoto" > To: "ruby-talk ML" > Sent: Wednesday, August 28, 2002 11:22 AM > Subject: Re: ANN: scanf for Ruby > > > > |As for your comment about including the module: > > |I guess what you mean is that we should do a > > |'def' in each of those three places, and use the > > |qualified name inside that definition, correct? > > > > I meant like this: > > (snip) > > Yes, I understand. > > FYI, David has now added a "block" form of scanf... > I think it is interesting, but I have not seen the > need for it yet. I believe it effectively does a > "map" on the list of data items before returning it. Also it (block version) keeps scanning as long as it's getting results -- so potentially it saves you from having to write your own loop around scanf and doing your own eof tests and such. David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav