Exception-Handling.html 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <html lang="en">
  2. <head>
  3. <title>Exception Handling - avram - a virtual machine code interpreter</title>
  4. <meta http-equiv="Content-Type" content="text/html">
  5. <meta name="description" content="avram - a virtual machine code interpreter">
  6. <meta name="generator" content="makeinfo 4.13">
  7. <link title="Top" rel="start" href="index.html#Top">
  8. <link rel="up" href="Virtual-Code-Semantics.html#Virtual-Code-Semantics" title="Virtual Code Semantics">
  9. <link rel="prev" href="List-Functions.html#List-Functions" title="List Functions">
  10. <link rel="next" href="Interfaces-to-External-Code.html#Interfaces-to-External-Code" title="Interfaces to External Code">
  11. <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
  12. <meta http-equiv="Content-Style-Type" content="text/css">
  13. <style type="text/css"><!--
  14. pre.display { font-family:inherit }
  15. pre.format { font-family:inherit }
  16. pre.smalldisplay { font-family:inherit; font-size:smaller }
  17. pre.smallformat { font-family:inherit; font-size:smaller }
  18. pre.smallexample { font-size:smaller }
  19. pre.smalllisp { font-size:smaller }
  20. span.sc { font-variant:small-caps }
  21. span.roman { font-family:serif; font-weight:normal; }
  22. span.sansserif { font-family:sans-serif; font-weight:normal; }
  23. --></style>
  24. </head>
  25. <body>
  26. <div class="node">
  27. <a name="Exception-Handling"></a>
  28. <p>
  29. Next:&nbsp;<a rel="next" accesskey="n" href="Interfaces-to-External-Code.html#Interfaces-to-External-Code">Interfaces to External Code</a>,
  30. Previous:&nbsp;<a rel="previous" accesskey="p" href="List-Functions.html#List-Functions">List Functions</a>,
  31. Up:&nbsp;<a rel="up" accesskey="u" href="Virtual-Code-Semantics.html#Virtual-Code-Semantics">Virtual Code Semantics</a>
  32. <hr>
  33. </div>
  34. <h4 class="subsection">2.7.15 Exception Handling</h4>
  35. <p><a name="index-exceptions-348"></a>In quite a few cases, the properties given for the operator up to this
  36. point do not imply any particular result. A good example would be an
  37. expression such as [[<code>left</code>]] <code>nil</code>, which appears to
  38. represent the left side of an empty pair. It can be argued that
  39. expressions like this have no sensible interpretation and should never
  40. be used, so it would be appropriate to leave them undefined. On the
  41. other hand, attempts to evaluate such expressions occur frequently by
  42. mistake, and in any case, the virtual machine emulator should be
  43. designed to do something reasonable about them if only for the sake of
  44. reporting the error. The chosen remedy for this situation addresses the
  45. need for error reporting, and also turns out to be useful in other ways.
  46. <ul class="menu">
  47. <li><a accesskey="1" href="A-Hierarchy-of-Sets.html#A-Hierarchy-of-Sets">A Hierarchy of Sets</a>
  48. <li><a accesskey="2" href="Operator-Generalization.html#Operator-Generalization">Operator Generalization</a>
  49. <li><a accesskey="3" href="Error-Messages.html#Error-Messages">Error Messages</a>
  50. <li><a accesskey="4" href="Expedient-Error-Messages.html#Expedient-Error-Messages">Expedient Error Messages</a>
  51. <li><a accesskey="5" href="Computable-Error-Messages.html#Computable-Error-Messages">Computable Error Messages</a>
  52. <li><a accesskey="6" href="Exception-Handler-Usage.html#Exception-Handler-Usage">Exception Handler Usage</a>
  53. </ul>
  54. </body></html>