🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.clos
Article #43

return-from GF with : after methods?

#43
From: john
Date: Tue, 28 Jul 1992 12:01
22 lines
1279 bytes
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?

Briefly, no.  I can't think of anything else.


John Burger
john@mitre.org
Technical Details
Message-ID: <9207282001.AA10901@thelonius.mitre.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!linus.mitre.org!john

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.clos
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!linus.mitre.org!john
From: john@linus.mitre.org
Subject: return-from GF with : after methods?
Message-ID: <9207282001.AA10901@thelonius.mitre.org>
Sender: daemon@cis.ohio-state.edu
Organization: The Ohio State University Department of Computer and Information Science
Date: Tue, 28 Jul 1992 12:01:47 GMT
Lines: 22