🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.clos
Article #45

Re: return-from GF with : after methods?

#45
From: kanderso
Date: Tue, 28 Jul 1992 13:37
25 lines
1651 bytes
  To: comp.lang.clos@cis.ohio-state.edu
  Date: Tue, 28 Jul 1992 12:01:47 GMT
  Organization: The Ohio State University Department of Computer and Information Science
  From: john@linus.mitre.org
  Sender: commonloops-request@cis.ohio-state.edu
  Subject: return-from GF with : after methods?
  
  Len Charest (charest@ai-cyclops.jpl.nasa.gov) writes:
  
    I have a generic function with a primary method and at least one
    :AFTER method.  The GF uses standard method combination. In the body
    of the primary method I have a conditional RETURN-FROM statement
    which I had assumed would throw out of the *GF* altogether and skip
    execution of the :AFTER method (essentially overriding the semantics
    of standard method combination)
  
  No, RETURN-FROM is entirely a lexical construct, and refers to the
  implicit block wrapping the body of your primary method.  This is
  exactly the correct behavior (see CLtL2, page 839).
  
    ... how do I exit from a primary method such that :AFTER method are
    skipped?  I'd like to avoid use of THROW and non-standard method
    combination.  Is it possible?
  
Use an :AROUND method.   Do you consider than non-standard?
Technical Details
Message-ID: <9207282145.AA28735@news.cis.ohio-state.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!bbn.com!kanderso
References: <9207282001.AA10901@thelonius.mitre.org>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.clos
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!bbn.com!kanderso
From: kanderso@bbn.com
Subject: Re: return-from GF with : after methods?
Message-ID: <9207282145.AA28735@news.cis.ohio-state.edu>
Sender: daemon@cis.ohio-state.edu
Organization: The Ohio State University Department of Computer and Information Science
References: <9207282001.AA10901@thelonius.mitre.org>
Date: Tue, 28 Jul 1992 13:37:28 GMT
Lines: 26