This file is indexed.

/usr/share/doc/racket/drracket/output-syntax.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
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!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>2.5&nbsp;Output Printing Styles</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,&quot;tocview_0&quot;);">&#9658;</a></td><td></td><td><a href="index.html" class="tocviewlink" data-pltdoc="x">Dr<span class="mywbr"> &nbsp;</span>Racket:<span class="mywbr"> &nbsp;</span> The Racket Programming Environment</a></td></tr></table></div><div class="tocviewsublisttop" style="display: none;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1&nbsp;</td><td><a href="interface-essentials.html" class="tocviewlink" data-pltdoc="x">Interface Essentials</a></td></tr><tr><td align="right">2&nbsp;</td><td><a href="languages.html" class="tocviewselflink" data-pltdoc="x">Languages</a></td></tr><tr><td align="right">3&nbsp;</td><td><a href="Interface_Reference.html" class="tocviewlink" data-pltdoc="x">Interface Reference</a></td></tr><tr><td align="right">4&nbsp;</td><td><a href="extending-drracket.html" class="tocviewlink" data-pltdoc="x">Extending Dr<span class="mywbr"> &nbsp;</span>Racket</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,&quot;tocview_1&quot;);">&#9660;</a></td><td>2&nbsp;</td><td><a href="languages.html" class="tocviewlink" data-pltdoc="x">Languages</a></td></tr></table><div class="tocviewsublistbottom" style="display: block;" id="tocview_1"><table cellspacing="0" cellpadding="0"><tr><td align="right">2.1&nbsp;</td><td><a href="module.html" class="tocviewlink" data-pltdoc="x">Language Declared in Source</a></td></tr><tr><td align="right">2.2&nbsp;</td><td><a href="legacy.html" class="tocviewlink" data-pltdoc="x">Legacy Languages</a></td></tr><tr><td align="right">2.3&nbsp;</td><td><a href="htdp-langs.html" class="tocviewlink" data-pltdoc="x"><span style="font-style: italic">How to Design Programs</span> Teaching Languages</a></td></tr><tr><td align="right">2.4&nbsp;</td><td><a href="experimental-langs.html" class="tocviewlink" data-pltdoc="x">Other Experimental Languages</a></td></tr><tr><td align="right">2.5&nbsp;</td><td><a href="" class="tocviewselflink" data-pltdoc="x">Output Printing Styles</a></td></tr></table></div></div></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, &quot;6.1&quot;, &quot;../&quot;);" onfocus="this.style.color=&quot;black&quot;; this.style.textAlign=&quot;left&quot;; if (this.value == &quot;...search manuals...&quot;) this.value=&quot;&quot;;" onblur="if (this.value.match(/^ *$/)) { this.style.color=&quot;#888&quot;; this.style.textAlign=&quot;center&quot;; this.value=&quot;...search manuals...&quot;; }"/></form>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.1&quot;);">top</a></span><span class="navright">&nbsp;&nbsp;<a href="experimental-langs.html" title="backward to &quot;2.4 Other Experimental Languages&quot;" data-pltdoc="x">&larr; prev</a>&nbsp;&nbsp;<a href="languages.html" title="up to &quot;2 Languages&quot;" data-pltdoc="x">up</a>&nbsp;&nbsp;<a href="Interface_Reference.html" title="forward to &quot;3 Interface Reference&quot;" data-pltdoc="x">next &rarr;</a></span>&nbsp;</div><h4 x-source-module="(lib &quot;scribblings/drracket/drracket.scrbl&quot;)" x-part-tag="&quot;output-syntax&quot;">2.5<tt>&nbsp;</tt><a name="(part._output-syntax)"></a><a name="(idx._(gentag._48._(lib._scribblings/drracket/drracket..scrbl)))"></a>Output Printing Styles</h4><p>Many Racket languages support a <span class="ssansserif">Output Syntax</span> choice that
determines how evaluation results are printed in the
<a href="interface-essentials.html#%28tech._interactions._window%29" class="techoutside" data-pltdoc="x"><span class="techinside">interactions window</span></a>. This setting also applies to output
generated by calling <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=Writing.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._print%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">print</a></span> explicitly.</p><p>The <span class="ssansserif">print</span> style is the normal Racket output style.  The
following table illustrates the other output styles:</p><p><table cellspacing="0" cellpadding="0"><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p>Input expression</p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="ssansserif">Constructor</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="ssansserif">Quasiquote</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="ssansserif">write</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=pairs.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._cons%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">cons</a></span><span class="stt"> </span><span class="RktVal">1</span><span class="stt"> </span><span class="RktVal">2</span><span class="RktPn">)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(cons<span class="stt"> </span>1<span class="stt"> </span>2)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">`(1<span class="stt"> </span>. 2)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(1<span class="stt"> </span>. 2)</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=pairs.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._list%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">list</a></span><span class="stt"> </span><span class="RktVal">1</span><span class="stt"> </span><span class="RktVal">2</span><span class="RktPn">)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(list<span class="stt"> </span>1<span class="stt"> </span>2)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">`(1<span class="stt"> </span>2)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(1<span class="stt"> </span>2)</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktVal">'</span><span class="RktVal">(</span><span class="RktVal">1</span><span class="stt"> </span><span class="RktVal">2</span><span class="RktVal">)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(list<span class="stt"> </span>1<span class="stt"> </span>2)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">`(1<span class="stt"> </span>2)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(1<span class="stt"> </span>2)</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=pairs.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._list%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">list</a></span><span class="stt"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">void</a></span><span class="RktPn">)</span><span class="RktPn">)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(list<span class="stt"> </span>(void))</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">`(,(void))</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(<span class="RktRes">#&lt;void&gt;</span>)</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktVal">`</span><span class="RktVal">(</span><span class="RktRdr">,</span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">void</a></span><span class="RktPn">)</span><span class="RktVal">)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(list<span class="stt"> </span>(void))</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">`(,(void))</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(<span class="RktRes">#&lt;void&gt;</span>)</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=vectors.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._vector%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">vector</a></span><span class="stt"> </span><span class="RktVal">1</span><span class="stt"> </span><span class="RktVal">2</span><span class="stt"> </span><span class="RktVal">3</span><span class="RktPn">)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(vector<span class="stt"> </span>1<span class="stt"> </span>2<span class="stt"> </span>3)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(vector<span class="stt"> </span>1<span class="stt"> </span>2<span class="stt"> </span>3)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">#(1<span class="stt"> </span>2<span class="stt"> </span>3)</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=boxes.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._box%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">box</a></span><span class="stt"> </span><span class="RktVal">1</span><span class="RktPn">)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(box<span class="stt"> </span>1)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(box<span class="stt"> </span>1)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">#&amp;1</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=lambda.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._lambda%2529%2529&amp;version=6.1" class="RktStxLink Sq" data-pltdoc="x">lambda</a></span><span class="stt"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="RktPn">)</span><span class="stt"> </span><span class="RktSym">x</span><span class="RktPn">)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(lambda<span class="stt"> </span>(a1)<span class="stt"> </span>...)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(lambda<span class="stt"> </span>(a1)<span class="stt"> </span>...)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes"><span class="RktRes">#&lt;procedure&gt;</span></span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktVal">'</span><span class="RktVal">sym</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">'sym</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">'sym</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">sym</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktPn">(</span><span class="RktSym">make-s</span><span class="stt"> </span><span class="RktVal">1</span><span class="stt"> </span><span class="RktVal">2</span><span class="RktPn">)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(make-s<span class="stt"> </span>1<span class="stt"> </span>2)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(make-s<span class="stt"> </span>1<span class="stt"> </span>2)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">#(struct:s<span class="stt"> </span>1<span class="stt"> </span>2)</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktVal">'</span><span class="RktVal">(</span><span class="RktVal">)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">empty</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">`()</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">()</span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=generic-numbers.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._add1%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">add1</a></span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">add1</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">add1</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes"><span class="RktRes">#&lt;procedure:add1&gt;</span></span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=Delayed_Evaluation.html%23%2528form._%2528%2528lib._racket%252Fpromise..rkt%2529._delay%2529%2529&amp;version=6.1" class="RktStxLink Sq" data-pltdoc="x">delay</a></span><span class="stt"> </span><span class="RktVal">1</span><span class="RktPn">)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(delay<span class="stt"> </span>...)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(delay<span class="stt"> </span>...)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes"><span class="RktRes">#&lt;promise&gt;</span></span></p></td></tr><tr><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=regexp.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._regexp%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">regexp</a></span><span class="stt"> </span><span class="RktVal">"a"</span><span class="RktPn">)</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(regexp<span class="stt"> </span>"a")</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">(regexp<span class="stt"> </span>"a")</span></p></td><td><p><span class="hspace">&nbsp;</span></p></td><td><p><span class="RktRes">#rx"a"</span></p></td></tr></table></p><p>The <a name="(idx._(gentag._49._(lib._scribblings/drracket/drracket..scrbl)))"></a><span class="ssansserif">Constructor</span> output mode is similar to
Rackets normal print mode, except that even quotable are still printed
with constructors, constructor functions and forms are used to
approximate some otherwise unprintable values. For example,
<span class="ssansserif">Constructor</span> output prints a procedure in a
<span class="RktRes">lambda</span> form. For output to a graphical context,
rational numbers are printed using a special <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=gui&amp;rel=snip_.html&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">snip%</a></span> object
that lets the user choose between improper fractions, mixed fractions,
and repeating decimals.</p><p>The <a name="(idx._(gentag._50._(lib._scribblings/drracket/drracket..scrbl)))"></a><span class="ssansserif">Quasiquote</span> output mode is like
<span class="ssansserif">Constructor</span> output, but it uses <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=quasiquote.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fletstx-scheme..rkt%2529._quasiquote%2529%2529&amp;version=6.1" class="RktStxLink Sq" data-pltdoc="x">quasiquote</a></span>
(abbreviated with <span class="RktInBG"><span class="hspace"></span><span class="RktIn">`</span><span class="hspace"></span></span>) to print lists, and it uses
<span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=quasiquote.html%23%2528form._%2528%2528quote._%7E23%7E25kernel%2529._unquote%2529%2529&amp;version=6.1" class="RktStxLink Sq" data-pltdoc="x">unquote</a></span> (abbreviated with <span class="RktInBG"><span class="hspace"></span><span class="RktIn">,</span><span class="hspace"></span></span>) to escape back to
<span class="ssansserif">Constructor</span> printing as needed.</p><p>The <a name="(idx._(gentag._51._(lib._scribblings/drracket/drracket..scrbl)))"></a><span class="ssansserif">write</span> output mode corresponds to traditional
Scheme printing via the <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=Writing.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._write%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">write</a></span> procedure. For example, lists
print by parenthesizing the printed form of the list elements, without
a leading quote mark or a constructor name.</p><p>Finally, the <a name="(idx._(gentag._52._(lib._scribblings/drracket/drracket..scrbl)))"></a><span class="ssansserif">print</span> output mode corresponds to
Racket&rsquo;s default printing via the <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=Writing.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._print%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">print</a></span> procedure. Output via
<span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=Writing.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._print%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">print</a></span> is further configurable through run-time settings, such
as the <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=Writing.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._print-as-expression%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">print-as-expression</a></span> parameter, and it may be adjusted
by a <a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=guide&amp;rel=Module_Syntax.html%23%2528part._hash-lang%2529&amp;version=6.1" class="RktModLink Sq" data-pltdoc="x"><span class="RktMod">#lang</span></a>-specified language. For example, the
<a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=scheme&amp;rel=scheme.html&amp;version=6.1" class="RktModLink Sq" data-pltdoc="x"><span class="RktSym">scheme</span></a> language sets the <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=Writing.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._print-as-expression%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">print-as-expression</a></span>
parameter to <span class="RktVal">#f</span>, which essentially makes <span class="ssansserif">print</span>
mode act like <span class="ssansserif">write</span> mode.</p><p>For any of the output styles, DrRacket sets the
<span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=Writing.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._global-port-print-handler%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">global-port-print-handler</a></span> so that the <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=Writing.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._print%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">print</a></span>
procedure produces output as selected.</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, &quot;6.1&quot;, &quot;../&quot;);" onfocus="this.style.color=&quot;black&quot;; this.style.textAlign=&quot;left&quot;; if (this.value == &quot;...search manuals...&quot;) this.value=&quot;&quot;;" onblur="if (this.value.match(/^ *$/)) { this.style.color=&quot;#888&quot;; this.style.textAlign=&quot;center&quot;; this.value=&quot;...search manuals...&quot;; }"/></form>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.1&quot;);">top</a></span><span class="navright">&nbsp;&nbsp;<a href="experimental-langs.html" title="backward to &quot;2.4 Other Experimental Languages&quot;" data-pltdoc="x">&larr; prev</a>&nbsp;&nbsp;<a href="languages.html" title="up to &quot;2 Languages&quot;" data-pltdoc="x">up</a>&nbsp;&nbsp;<a href="Interface_Reference.html" title="forward to &quot;3 Interface Reference&quot;" data-pltdoc="x">next &rarr;</a></span>&nbsp;</div></div></div><div id="contextindicator">&nbsp;</div></body></html>