From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jon Wilson Newsgroups: gmane.lisp.guile.user Subject: Re: Me no understand scoping Date: Sat, 02 Aug 2008 01:13:09 -0400 Message-ID: <4893ECE5.2090702@wilsonjc.us> References: <87r69ccaus.fsf@unknownlamer.org> <489074A9.1080508@wilsonjc.us> <49dd78620807310020i8b55067gd22f6ce361a04d7d@mail.gmail.com> <874p657gyo.fsf@unknownlamer.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7BIT X-Trace: ger.gmane.org 1217654159 8412 80.91.229.12 (2 Aug 2008 05:15:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Aug 2008 05:15:59 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Aug 02 07:16:49 2008 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KP9Tv-0002Jn-UB for guile-user@m.gmane.org; Sat, 02 Aug 2008 07:16:44 +0200 Original-Received: from localhost ([127.0.0.1]:47574 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KP9T1-00036y-4s for guile-user@m.gmane.org; Sat, 02 Aug 2008 01:15:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KP9QZ-00011t-1Q for guile-user@gnu.org; Sat, 02 Aug 2008 01:13:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KP9QW-0000zr-HN for guile-user@gnu.org; Sat, 02 Aug 2008 01:13:13 -0400 Original-Received: from [199.232.76.173] (port=34894 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KP9QV-0000za-Vm for guile-user@gnu.org; Sat, 02 Aug 2008 01:13:12 -0400 Original-Received: from mailgw1.fnal.gov ([131.225.111.11]:44737) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KP9QV-0006Nl-TB for guile-user@gnu.org; Sat, 02 Aug 2008 01:13:12 -0400 Original-Received: from mailav2.fnal.gov (mailav2.fnal.gov [131.225.111.20]) by mailgw1.fnal.gov (iPlanet Messaging Server 5.2 HotFix 2.06 (built Mar 28 2005)) with SMTP id <0K4Y00BU6JS14R@mailgw1.fnal.gov> for guile-user@gnu.org; Sat, 02 Aug 2008 00:13:10 -0500 (CDT) Original-Received: from mailgw2.fnal.gov ([131.225.111.12]) by mailav2.fnal.gov (SAVSMTP 3.1.7.47) with SMTP id M2008080200131000358 for ; Sat, 02 Aug 2008 00:13:10 -0500 Original-Received: from conversion-daemon.mailgw2.fnal.gov by mailgw2.fnal.gov (iPlanet Messaging Server 5.2 HotFix 2.06 (built Mar 28 2005)) id <0K4Y00H01JEZNN@mailgw2.fnal.gov> (original mail from jsw@wilsonjc.us) for guile-user@gnu.org; Sat, 02 Aug 2008 00:13:10 -0500 (CDT) Original-Received: from wilsonjc.us (cpe-75-187-46-126.columbus.res.rr.com [75.187.46.126]) by mailgw2.fnal.gov (iPlanet Messaging Server 5.2 HotFix 2.06 (built Mar 28 2005)) with ESMTPSA id <0K4Y003ILJTX14@mailgw2.fnal.gov> for guile-user@gnu.org; Sat, 02 Aug 2008 00:13:10 -0500 (CDT) In-reply-to: User-Agent: Thunderbird 2.0.0.16 (X11/20080724) X-detected-kernel: by monty-python.gnu.org: Solaris 9 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6717 Archived-At: Time to trot out the tired old koan [1] ... Maciek Godek wrote: > which is sad because closures are a very powerful > yet simple mechanism (definitely simpler than what GOOPS or > CLOS have to offer if it comes to OOP -- both in concepts and > implementation) " The venerable master Qc Na was walking with his student, Anton. Hoping to prompt the master into a discussion, Anton said "Master, I have heard that objects are a very good thing - is this true?" Qc Na looked pityingly at his student and replied, "Foolish pupil - objects are merely a poor man's closures." " Chastised, Anton took his leave from his master and returned to his cell, intent on studying closures. He carefully read the entire "Lambda: The Ultimate..." series of papers and its cousins, and implemented a small Scheme interpreter with a closure-based object system. He learned much, and looked forward to informing his master of his progress. " On his next walk with Qc Na, Anton attempted to impress his master by saying "Master, I have diligently studied the matter, and now understand that objects are truly a poor man's closures." Qc Na responded by hitting Anton with his stick, saying "When will you learn? Closures are a poor man's object." At that moment, Anton became enlightened. [1] http://people.csail.mit.edu/gregs/ll1-discuss-archive-html/msg03277.html