mtwist-exceptions.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <html lang="en">
  2. <head>
  3. <title>mtwist exceptions - 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="mtwist.html#mtwist" title="mtwist">
  9. <link rel="prev" href="mtwist-calling-conventions.html#mtwist-calling-conventions" title="mtwist calling conventions">
  10. <link rel="next" href="Additional-mtwist-notes.html#Additional-mtwist-notes" title="Additional mtwist notes">
  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="mtwist-exceptions"></a>
  28. <p>
  29. Next:&nbsp;<a rel="next" accesskey="n" href="Additional-mtwist-notes.html#Additional-mtwist-notes">Additional mtwist notes</a>,
  30. Previous:&nbsp;<a rel="previous" accesskey="p" href="mtwist-calling-conventions.html#mtwist-calling-conventions">mtwist calling conventions</a>,
  31. Up:&nbsp;<a rel="up" accesskey="u" href="mtwist.html#mtwist">mtwist</a>
  32. <hr>
  33. </div>
  34. <h4 class="subsection">D.12.2 <code>mtwist</code> exceptions</h4>
  35. <ul>
  36. <li><code>&lt;'memory overflow'&gt;</code> can be returned if there is insufficient
  37. memory to allocate a result.
  38. <li>Messages of <code>&lt;'missing value'&gt;</code> and <code>&lt;'invalid value'&gt;</code> can
  39. be returned if any floating point argument is <code>nil</code> or is not a
  40. valid floating point number, unless there is a designated default
  41. interpretation for <code>nil</code> as in <code>bern</code> and <code>u_cont</code>.
  42. <li>A message of <code>&lt;'bad mtwist specification'&gt;</code> is returned if an
  43. argument to the <code>bern</code> function is not in the range of 0 to 1, or
  44. if any probability passed to the <code>w_</code>* functions is negative.
  45. <li>A message of <code>&lt;'draw from empty list'&gt;</code> is returned if
  46. an argument to the *<code>_enum</code> functions is <code>nil</code>
  47. or if an argument to <code>w_enum</code> contains <code>nil</code>.
  48. </ul>
  49. </body></html>