Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!feeds.phibee-telecom.net!talisker.lacave.net!lacave.net!not-for-mail From: "Eric T." Newsgroups: comp.lang.ruby Subject: Re: Telnet "More?" Date: Sun, 17 Apr 2011 19:48:01 -0500 Organization: Service de news de lacave.net Lines: 19 Message-ID: <9ad7422f9e7881a37eb06b255a50f31e@ruby-forum.com> References: <0bc1be8ec871e5fbad7753c695247ddc@ruby-forum.com> <4c00eb93cb86eea75501e223526dc08b@ruby-forum.com> NNTP-Posting-Host: bristol.highgroove.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: talisker.lacave.net 1303087716 80252 65.111.164.187 (18 Apr 2011 00:48:36 GMT) X-Complaints-To: abuse@lacave.net NNTP-Posting-Date: Mon, 18 Apr 2011 00:48:36 +0000 (UTC) In-Reply-To: <4c00eb93cb86eea75501e223526dc08b@ruby-forum.com> X-Received-From: This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway X-Mail-Count: 381760 X-Ml-Name: ruby-talk X-Rubymirror: Yes X-Ruby-Talk: <9ad7422f9e7881a37eb06b255a50f31e@ruby-forum.com> Xref: x330-a1.tempe.blueboxinc.net comp.lang.ruby:3076 7stud -- wrote in post #993403: > Yes, that would be pointless, but where does such a function appear in > your code? That would be (I thought) the 'out' lambda, but as Christopher explained, print is actually a *method* (not obvious if you don't know Ruby), so it makes more sense that a closure is required. In Lua, for instance, print is a global function, so making a closure 'function out(...) print(...) end' would be utterly superfluous; anything you could pass 'out' to you could just pass 'print' to. It still strikes me odd that Kernel#print is not static (does it modify Kernel state?), or if it *is* static that you can't just pass it as-is to anything that requires a callable. -- Posted via http://www.ruby-forum.com/.