/usr/share/doc/racket/deinprogramm/cond.html is in racket-doc 6.1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>1.7 cond</title><link rel="stylesheet" type="text/css" href="../scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="../racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-style.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../doc-site.css" title="default"/><script type="text/javascript" src="../scribble-common.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../doc-site.js"></script><script type="text/javascript" src="../local-redirect/local-redirect.js"></script><script type="text/javascript" src="../local-redirect/local-user-redirect.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="doc-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,"tocview_0");">►</a></td><td></td><td><a href="index.html" class="tocviewlink" data-pltdoc="x">Sprachebenen und Material zu <span style="font-style: italic">Die Macht der Abstraktion</span></a></td></tr></table></div><div class="tocviewsublisttop" style="display: none;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1 </td><td><a href="DMdA-beginner.html" class="tocviewselflink" data-pltdoc="x">Die Macht der Abstraktion -<wbr></wbr> Anfänger</a></td></tr><tr><td align="right">2 </td><td><a href="DMdA-vanilla.html" class="tocviewlink" data-pltdoc="x">Die Macht der Abstraktion</a></td></tr><tr><td align="right">3 </td><td><a href="DMdA-assignments.html" class="tocviewlink" data-pltdoc="x">Die Macht der Abstraktion mit Zuweisungen</a></td></tr><tr><td align="right">4 </td><td><a href="DMdA-advanced.html" class="tocviewlink" data-pltdoc="x">Die Macht der Abstraktion fortgeschritten</a></td></tr><tr><td align="right">5 </td><td><a href="Konstruktionsanleitungen_1_bis_10.html" class="tocviewlink" data-pltdoc="x">Konstruktionsanleitungen 1 bis 10</a></td></tr><tr><td align="right">6 </td><td><a href="image.html" class="tocviewlink" data-pltdoc="x">Bilder konstruieren:<span class="mywbr"> </span> <span class="stt">"image.ss"</span><a name="(idx._(gentag._2._(lib._deinprogramm/scribblings/deinprogramm..scrbl)))"></a></a></td></tr><tr><td align="right">7 </td><td><a href="world.html" class="tocviewlink" data-pltdoc="x">Animationen:<span class="mywbr"> </span> <span class="stt">"world.ss"</span><a name="(idx._(gentag._3._(lib._deinprogramm/scribblings/deinprogramm..scrbl)))"></a></a></td></tr><tr><td align="right">8 </td><td><a href="turtle.html" class="tocviewlink" data-pltdoc="x">Turtle-<wbr></wbr>Grafik:<span class="mywbr"> </span> <span class="stt">"turtle.ss"</span><a name="(idx._(gentag._4._(lib._deinprogramm/scribblings/deinprogramm..scrbl)))"></a></a></td></tr><tr><td align="right">9 </td><td><a href="sound.html" class="tocviewlink" data-pltdoc="x">Abspielen von Audio-<wbr></wbr>Dateien:<span class="mywbr"> </span> <span class="stt">"sound.ss"</span><a name="(idx._(gentag._5._(lib._deinprogramm/scribblings/deinprogramm..scrbl)))"></a></a></td></tr><tr><td align="right">10 </td><td><a href="line3d.html" class="tocviewlink" data-pltdoc="x">3D-<wbr></wbr>Liniengraphik:<span class="mywbr"> </span> <span class="stt">"line3d.ss"</span><a name="(idx._(gentag._6._(lib._deinprogramm/scribblings/deinprogramm..scrbl)))"></a></a></td></tr><tr><td align="right">11 </td><td><a href="DMdA__Sprachen_als_Libraries.html" class="tocviewlink" data-pltdoc="x"><span style="font-weight: bold">DMd<span class="mywbr"> </span>A</span>:<span class="mywbr"> </span> Sprachen als Libraries</a></td></tr><tr><td align="right"></td><td><a href="doc-index.html" class="tocviewlink" data-pltdoc="x">Index</a></td></tr></table></div></div><div class="tocviewlist"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,"tocview_1");">▼</a></td><td>1 </td><td><a href="DMdA-beginner.html" class="tocviewlink" data-pltdoc="x">Die Macht der Abstraktion -<wbr></wbr> Anfänger</a></td></tr></table><div class="tocviewsublistbottom" style="display: block;" id="tocview_1"><table cellspacing="0" cellpadding="0"><tr><td align="right">1.1 </td><td><a href="Definitionen.html" class="tocviewlink" data-pltdoc="x">Definitionen</a></td></tr><tr><td align="right">1.2 </td><td><a href="Record-Typ-Definitionen.html" class="tocviewlink" data-pltdoc="x">Record-<wbr></wbr>Typ-<wbr></wbr>Definitionen</a></td></tr><tr><td align="right">1.3 </td><td><a href="application.html" class="tocviewlink" data-pltdoc="x">Prozedurapplikation</a></td></tr><tr><td align="right">1.4 </td><td><a href="_t_and__f.html" class="tocviewlink" data-pltdoc="x"><span class="RktVal">#t</span> and <span class="RktVal">#f</span></a></td></tr><tr><td align="right">1.5 </td><td><a href="lambda.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktStxLink">lambda</span></span></a></td></tr><tr><td align="right">1.6 </td><td><a href="id.html" class="tocviewlink" data-pltdoc="x">Bezeichner</a></td></tr><tr><td align="right">1.7 </td><td><a href="" class="tocviewselflink" data-pltdoc="x"><span class="RktSym"><span class="RktStxLink">cond</span></span></a></td></tr><tr><td align="right">1.8 </td><td><a href="if.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktStxLink">if</span></span></a></td></tr><tr><td align="right">1.9 </td><td><a href="and.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktStxLink">and</span></span></a></td></tr><tr><td align="right">1.10 </td><td><a href="or.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktStxLink">or</span></span></a></td></tr><tr><td align="right">1.11 </td><td><a href="Signaturen.html" class="tocviewlink" data-pltdoc="x">Signaturen</a></td></tr><tr><td align="right">1.12 </td><td><a href="Testf_lle.html" class="tocviewlink" data-pltdoc="x">Testfälle</a></td></tr><tr><td align="right">1.13 </td><td><a href="Parametrische_Record-Typ-Definitionen.html" class="tocviewlink" data-pltdoc="x">Parametrische Record-<wbr></wbr>Typ-<wbr></wbr>Definitionen</a></td></tr><tr><td align="right">1.14 </td><td><a href="Eigenschaften.html" class="tocviewlink" data-pltdoc="x">Eigenschaften</a></td></tr><tr><td align="right">1.15 </td><td><a href="beginner-prim-ops.html" class="tocviewlink" data-pltdoc="x">Primitive Operationen</a></td></tr></table></div></div></div><div class="tocsub"><div class="tocsubtitle">On this page:</div><table class="tocsublist" cellspacing="0"><tr><td><a href="#%28form._%28%28lib._deinprogramm%2F.D.Md.A..rkt%29._cond%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktStxLink">cond</span></span></a></td></tr><tr><td><a href="#%28form._%28%28lib._deinprogramm%2F.D.Md.A..rkt%29._else%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktStxLink">else</span></span></a></td></tr></table></div></div><div class="maincolumn"><div class="main"><div class="navsettop"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, "6.1", "../");" onfocus="this.style.color="black"; this.style.textAlign="left"; if (this.value == "...search manuals...") this.value="";" onblur="if (this.value.match(/^ *$/)) { this.style.color="#888"; this.style.textAlign="center"; this.value="...search manuals..."; }"/></form> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.1");">top</a></span><span class="navright"> <a href="id.html" title="backward to "1.6 Bezeichner"" data-pltdoc="x">← prev</a> <a href="DMdA-beginner.html" title="up to "1 Die Macht der Abstraktion - Anfänger"" data-pltdoc="x">up</a> <a href="if.html" title="forward to "1.8 if"" data-pltdoc="x">next →</a></span> </div><h4 x-source-module="(lib "deinprogramm/scribblings/deinprogramm.scrbl")" x-part-tag=""cond"">1.7<tt> </tt><a name="(part._cond)"></a><span class="RktSym"><a href="#%28form._%28%28lib._deinprogramm%2F.D.Md.A..rkt%29._cond%29%29" class="RktStxLink" data-pltdoc="x">cond</a></span></h4><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>syntax</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(form._((lib._deinprogramm/.D.Md.A..rkt)._cond))"></a><span title="Provided from: deinprogramm/DMdA-beginner | Package: deinprogramm"><span class="RktSym"><a href="#%28form._%28%28lib._deinprogramm%2F.D.Md.A..rkt%29._cond%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">cond</a></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktVar">expr</span><span class="hspace"> </span><span class="RktVar">expr</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktVar">expr</span><span class="hspace"> </span><span class="RktVar">expr</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Ein <span class="RktSym"><a href="#%28form._%28%28lib._deinprogramm%2F.D.Md.A..rkt%29._cond%29%29" class="RktStxLink" data-pltdoc="x">cond</a></span>-Ausdruck bildet eine Verzweigung, die aus mehreren
Zweigen besteht. Jeder Zweig besteht
aus einem Test und einem Ausdruck. Bei der Auswertung werden die
Zweige nacheinander abgearbeitet. Dabei wird jeweils zunächst der Test
ausgewertet, der jeweils einen booleschen Wert ergeben müssen. Beim
ersten Test, der <span class="RktVal">#t</span> ergibt, wird der Wert des Ausdrucks des Zweigs zum
Wert der gesamten Verzweigung. Wenn kein Test <span class="RktVal">#t</span> ergibt, wird das
Programm mit einer Fehlermeldung abgebrochen.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>syntax</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="#%28form._%28%28lib._deinprogramm%2F.D.Md.A..rkt%29._cond%29%29" class="RktStxLink" data-pltdoc="x">cond</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktVar">expr</span><span class="hspace"> </span><span class="RktVar">expr</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="#%28form._%28%28lib._deinprogramm%2F.D.Md.A..rkt%29._else%29%29" class="RktStxLink" data-pltdoc="x">else</a></span><span class="hspace"> </span><span class="RktVar">expr</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Die Form des cond-Ausdrucks ist ähnlich zur vorigen, mit der
Ausnahme, daß in dem Fall, in dem kein Test <span class="RktVal">#t</span> ergibt, der Wert des
letzten Ausdruck zum Wert der <span class="RktSym"><a href="#%28form._%28%28lib._deinprogramm%2F.D.Md.A..rkt%29._cond%29%29" class="RktStxLink" data-pltdoc="x">cond</a></span>-Form wird.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>syntax</p></div></div><p class="RForeground"><a name="(form._((lib._deinprogramm/.D.Md.A..rkt)._else))"></a><span title="Provided from: deinprogramm/DMdA-beginner | Package: deinprogramm"><span class="RktSym"><a href="#%28form._%28%28lib._deinprogramm%2F.D.Md.A..rkt%29._else%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">else</a></span></span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Das Schlüsselwort <span class="RktSym"><a href="#%28form._%28%28lib._deinprogramm%2F.D.Md.A..rkt%29._else%29%29" class="RktStxLink" data-pltdoc="x">else</a></span> kann nur in <span class="RktSym"><a href="#%28form._%28%28lib._deinprogramm%2F.D.Md.A..rkt%29._cond%29%29" class="RktStxLink" data-pltdoc="x">cond</a></span> benutzt werden.</div></p><div class="navsetbottom"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, "6.1", "../");" onfocus="this.style.color="black"; this.style.textAlign="left"; if (this.value == "...search manuals...") this.value="";" onblur="if (this.value.match(/^ *$/)) { this.style.color="#888"; this.style.textAlign="center"; this.value="...search manuals..."; }"/></form> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.1");">top</a></span><span class="navright"> <a href="id.html" title="backward to "1.6 Bezeichner"" data-pltdoc="x">← prev</a> <a href="DMdA-beginner.html" title="up to "1 Die Macht der Abstraktion - Anfänger"" data-pltdoc="x">up</a> <a href="if.html" title="forward to "1.8 if"" data-pltdoc="x">next →</a></span> </div></div></div><div id="contextindicator"> </div></body></html>
|