<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">In <a href="http://www.ci.uchicago.edu/swift/guides/tutorial.php">http://www.ci.uchicago.edu/swift/guides/tutorial.php</a> in first.swift, the procedure is defined as:<div><br></div><div><br></div><div><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb(51, 51, 51); font-size: 12px; line-height: 17px; "><span class="codeline" style="font-family: Consolas, 'Andale Mono', monospaced; "><span class="keyword" style="font-family: Consolas, 'Andale Mono', monospaced; color: rgb(32, 32, 128); font-weight: bold; ">app</span><span style="font-family: Consolas, 'Andale Mono', monospaced; "> (messagefile t) greeting () { <br style="font-family: Consolas, 'Andale Mono', monospaced; "></span></span><span class="codeline" style="font-family: Consolas, 'Andale Mono', monospaced; "> echo <span class="string" style="font-family: Consolas, 'Andale Mono', monospaced; color: rgb(32, 144, 32); ">"Hello, world!"</span><span style="font-family: Consolas, 'Andale Mono', monospaced; "> stdout=</span><span class="function" style="font-family: Consolas, 'Andale Mono', monospaced; color: rgb(128, 0, 64); ">@filename</span><span style="font-family: Consolas, 'Andale Mono', monospaced; ">(t); <br style="font-family: Consolas, 'Andale Mono', monospaced; "></span></span><span class="codeline" style="font-family: Consolas, 'Andale Mono', monospaced; ">} <br style="font-family: Consolas, 'Andale Mono', monospaced; "></span></span><div><br></div><div><br></div><div>in parameter.swift, the new procedure is defined as:</div><div><br></div><div><br></div><div><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb(51, 51, 51); font-size: 12px; line-height: 17px; "><span class="codeline" style="font-family: Consolas, 'Andale Mono', monospaced; ">(messagefile t) greeting (<span class="keyword" style="font-family: Consolas, 'Andale Mono', monospaced; color: rgb(32, 32, 128); font-weight: bold; ">string</span><span style="font-family: Consolas, 'Andale Mono', monospaced; "> s) { <br style="font-family: Consolas, 'Andale Mono', monospaced; "></span></span><span class="codeline" style="font-family: Consolas, 'Andale Mono', monospaced; "> <span class="keyword" style="font-family: Consolas, 'Andale Mono', monospaced; color: rgb(32, 32, 128); font-weight: bold; ">app</span><span style="font-family: Consolas, 'Andale Mono', monospaced; "> { <br style="font-family: Consolas, 'Andale Mono', monospaced; "></span></span><span class="codeline" style="font-family: Consolas, 'Andale Mono', monospaced; "> echo s stdout=<span class="function" style="font-family: Consolas, 'Andale Mono', monospaced; color: rgb(128, 0, 64); ">@filename</span><span style="font-family: Consolas, 'Andale Mono', monospaced; ">(t); <br style="font-family: Consolas, 'Andale Mono', monospaced; "></span></span><span class="codeline" style="font-family: Consolas, 'Andale Mono', monospaced; "> } <br style="font-family: Consolas, 'Andale Mono', monospaced; "></span><span class="codeline" style="font-family: Consolas, 'Andale Mono', monospaced; ">} </span></span></div><div><br></div><div><br></div><div>I don't understand why the style of defining the procedure has changed, or what this change implies.</div><div><br></div><div>I would have just started with the first.swift procedure, and changed it to:</div><div><br></div><div><br></div><div><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb(51, 51, 51); font-size: 12px; line-height: 17px; "><span class="codeline" style="font-family: Consolas, 'Andale Mono', monospaced; "><span class="keyword" style="font-family: Consolas, 'Andale Mono', monospaced; color: rgb(32, 32, 128); font-weight: bold; ">app</span><span style="font-family: Consolas, 'Andale Mono', monospaced; "> (messagefile t) greeting (</span></span></span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Consolas, 'Andale Mono', monospaced; font-size: 12px; line-height: 17px; "><span class="keyword" style="font-family: Consolas, 'Andale Mono', monospaced; color: rgb(32, 32, 128); font-weight: bold; ">string</span></span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Consolas, 'Andale Mono', monospaced; font-size: 12px; line-height: 17px; "><span style="font-family: Consolas, 'Andale Mono', monospaced; "> s</span></span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Consolas, 'Andale Mono', monospaced; font-size: 12px; line-height: 17px; ">) { </span></div><div><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb(51, 51, 51); font-size: 12px; line-height: 17px; "><span class="codeline" style="font-family: Consolas, 'Andale Mono', monospaced; "> <span style="font-family: Consolas, 'Andale Mono', monospaced; ">echo s stdout=<span class="function" style="font-family: Consolas, 'Andale Mono', monospaced; color: rgb(128, 0, 64); ">@filename</span><span style="font-family: Consolas, 'Andale Mono', monospaced; ">(t);</span> <br style="font-family: Consolas, 'Andale Mono', monospaced; "></span></span></span><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb(51, 51, 51); font-size: 12px; line-height: 17px; "><span class="codeline" style="font-family: Consolas, 'Andale Mono', monospaced; ">} <br style="font-family: Consolas, 'Andale Mono', monospaced; "></span></span></div><div><font class="Apple-style-span" color="#333333" face="Consolas, 'Andale Mono', monospaced" size="3"><span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"><br></span></font></div><div><font class="Apple-style-span" color="#333333" face="Consolas, 'Andale Mono', monospaced" size="3"><span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"><br></span></font></div><div>In fact, I did try this, and the code works fine, so I fail to understand the reason for the larger change that is in the tutorial.</div><div><br></div><div>Dan</div><div><br></div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 9px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 9px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 10px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" face="Courier">-- </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" face="Courier">Daniel S. Katz</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" face="Courier">University of Chicago</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" face="Courier">(773) 834-7186 (voice)</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" face="Courier">(773) 834-3700 (fax)</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" face="Courier"><a href="mailto:d.katz@ieee.org">d.katz@ieee.org</a> or <a href="mailto:dsk@ci.uchicago.edu">dsk@ci.uchicago.edu</a></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><span class="Apple-style-span" style="font-family: Courier; "><a href="http://www.ci.uchicago.edu/~dsk/">http://www.ci.uchicago.edu/~dsk/</a></span></div><div><font class="Apple-style-span" face="Courier"><br></font></div></div></div></span></div></div></div></span></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></div></div></body></html>