From ruby-talk-admin@ruby-lang.org Fri Dec 16 02:48:03 2005 Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (8.12.3/8.12.3/Debian-6.6) with ESMTP id jBFHm3Zk030061; Fri, 16 Dec 2005 02:48:03 +0900 Received: from funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id C790C5A33; Fri, 16 Dec 2005 02:48:07 +0900 (JST) Received: from localhost (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id DA59FF04850; Fri, 16 Dec 2005 02:48:07 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 8AC3FF04847; Fri, 16 Dec 2005 02:48:06 +0900 (JST) Received: from beryllium.ruby-lang.org (beryllium.ruby-lang.org [210.163.138.100]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 8A1F263002A; Fri, 16 Dec 2005 02:48:06 +0900 (JST) Received: from beryllium.ruby-lang.org (beryllium.ruby-lang.org [127.0.0.1]) by beryllium.ruby-lang.org (Postfix) with ESMTP id AB73233DCE; Fri, 16 Dec 2005 02:48:05 +0900 (JST) Received: from localhost (beryllium.ruby-lang.org [127.0.0.1]) by beryllium.ruby-lang.org (Postfix) with ESMTP id C0E0133A28 for ; Fri, 16 Dec 2005 02:47:39 +0900 (JST) Received: from beryllium.ruby-lang.org ([127.0.0.1]) by localhost (beryllium.ruby-lang.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14950-10 for ; Fri, 16 Dec 2005 02:47:39 +0900 (JST) Received: from sinus.lauschmusik.de (sinus.lauschmusik.de [213.95.32.201]) by beryllium.ruby-lang.org (Postfix) with ESMTP id 41D8833DCE for ; Fri, 16 Dec 2005 02:47:39 +0900 (JST) Received: from localhost ([127.0.0.1] helo=localhost.localdomain) by sinus.lauschmusik.de with esmtp (Exim 4.50) id 1EmxA5-0004le-El for ruby-talk@ruby-lang.org; Thu, 15 Dec 2005 18:45:01 +0100 Received: from pd7tw2no.POSTED (pd7tw2no.POSTED) by sinus.lauschmusik.de with NTTP id 166247 for ; Thu Dec 15 18:45:01 CET 2005 Received: from [64.59.144.74] by pd7tw2no.POSTED (unknown) with NNTP id 166247 for ; Thu Dec 15 18:45:01 CET 2005 Received: from Usenet via a Usenet to mail gateway located at lauschmusik.de. This service provided as a courtesy to the ruby-talk mailing list. If this message is SPAM, its ultimate origin is Usenet, not this gateway program. All subscribers to the ruby-talk mailing list agree to receive the Usenet postings made to comp.lang.ruby via this gateway. Please see http://www.ruby-lang.org/ruby-talk-usenet-policy.html. Delivered-To: ruby-talk@ruby-lang.org Date: Fri, 16 Dec 2005 02:47:40 +0900 Posted: Thu, 15 Dec 2005 17:44:57 GMT From: Martin DeMello Reply-To: ruby-talk@ruby-lang.org Subject: Re: Assigning a block to a variable in Ruby To: ruby-talk@ruby-lang.org (ruby-talk ML) Message-Id: References: <1134665773.927049.245200@z14g2000cwz.googlegroups.com> X-ML-Name: ruby-talk X-Mail-Count: 81 X-MLServer: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post) X-ML-Info: If you have a question, send e-mail with the body "help" (without quotes) to the address ruby-talk-ctl@ruby-lang.org; help= User-Agent: tin/1.7.8-20050315 ("Scalpay") (UNIX) (Linux/2.6.13.4 (i686)) X-Original-To: ruby-talk@ruby-lang.org Path: noris.net!news.n-ix.net!newsfeed.freenet.de!ecngs!feeder2.ecngs.de!meganewsservers.com!feeder2.on.meganewsservers.com!feed.cgocable.net!pd7cy1no!shaw.ca!pd7tw2no.POSTED!53ab2750!not-for-mail X-Trace-PostClient-IP: 24.86.162.207 Newsgroups: comp.lang.ruby NNTP-Posting-Host: 64.59.144.74 X-Complaints-To: abuse@shaw.ca X-Trace: pd7tw2no 1134668697 64.59.144.74 (Thu, 15 Dec 2005 10:44:57 MST) NNTP-Posting-Date: Thu, 15 Dec 2005 10:44:57 MST Organization: Shaw Residential Internet X-From-Usenet: see Received: header above. X-rubymirror: yes X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ruby-lang.org X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on beryllium.ruby-lang.org X-Spam-Level: X-Spam-Status: No, score=-9.3 required=7.0 tests=AWL,BAYES_00,BLARS00, BLARS_SPAM00,FORGED_YAHOO_RCVD,MSGID_FROM_MTA_HEADER,NOTINCONTENTTYPE, RCVDFRMLOCALIP,RCVD_IN_BLARS,RCVD_IN_BLARS_SPAM autolearn=unavailable version=3.0.3 Precedence: bulk Lines: 8 List-Id: ruby-talk.ruby-lang.org List-Software: fml [fml 4.0.3 release (20011202/4.0.3)] List-Post: List-Owner: List-Help: List-Unsubscribe: X-Virus-Scanned: by AMaViS snapshot-20020531 ajmayo@my-deja.com wrote: > evaluate the function with parameter 1, then attempt to print the > function itself (which Javascript will do, printing the text of the > block) Ruby does not do this. martin