home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / arch / 10551 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.8 KB

  1. Xref: sparky comp.arch:10551 comp.lang.misc:3554
  2. Newsgroups: comp.arch,comp.lang.misc
  3. Path: sparky!uunet!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!decwrl!pa.dec.com!rdg.dec.com!jch
  4. From: jch@rdg.dec.com (John Haxby)
  5. Subject: Re: CLU break and continue (Was: Re: A challenge to the anti-goto)
  6. Message-ID: <1992Nov9.175737.28697@rdg.dec.com>
  7. Sender: news@rdg.dec.com (Mr News)
  8. Organization: Digital Equipment Corporation
  9. References: <1cvoctINNmhs@agate.berkeley.edu> <PSM.92Nov3165530@soma.sics.se> <BRADLEY.92Nov9101822@marley.think.com>
  10. Date: Mon, 9 Nov 1992 17:57:37 GMT
  11. Lines: 27
  12.  
  13. In article <BRADLEY.92Nov9101822@marley.think.com>, bradley@marley.think.com (Bradley Kuszmaul) writes:
  14. |> In article <1992Nov9.114323.22688@rdg.dec.com> jch@rdg.dec.com (John Haxby) writes:
  15. |> 
  16. |>    ...
  17. |>    Apart from the local/procedure-call difference the two mechanisms are
  18. |>    identical, although `signal' tends to be expensive and `exit' is simply
  19. |>    an unconditional branch. ...
  20. |> 
  21. |> The signal is not as expensive as you might think.  This is because the
  22.  
  23. I should've said `relative to return or relative to exit'.
  24.  
  25. Once, long ago I implemented something that treated `signal' as
  26. though it were a form of `return'.  It wasn't fast -- the program spent
  27. most of its time in the signal dispatcher since (a) the offending procedure
  28. was used for each input token and (b) the program didn't do very much
  29. else.  Mind you, if I'd done the same thing in Ada it may well have been
  30. running to this day.... (if it worked, the unhandled exception thing in Ada,
  31. as you say, is rather silly).
  32.  
  33. -- 
  34. John Haxby, Definitively Wrong.
  35. Digital                <jch@rdg.dec.com>
  36. Reading, England        <...!uknet!wessex!jch>
  37.  
  38. ----------------------------------------------------------------
  39. The opinions expressed herein are my own, not my employers.
  40.