[Swift-user] a third tutorial question

Daniel S. Katz dsk at ci.uchicago.edu
Thu Oct 14 10:45:24 CDT 2010


In http://www.ci.uchicago.edu/swift/guides/tutorial.php in first.swift, the procedure is defined as:


app (messagefile t) greeting () {  
        echo "Hello, world!" stdout=@filename(t);  
}  


in parameter.swift, the new procedure is defined as:


(messagefile t) greeting (string s) {  
    app {  
        echo s stdout=@filename(t);  
    }  
}  


I don't understand why the style of defining the procedure has changed, or what this change implies.

I would have just started with the first.swift procedure, and changed it to:


app (messagefile t) greeting (string s) {  
        echo s stdout=@filename(t);  
}  


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.

Dan


-- 
Daniel S. Katz
University of Chicago
(773) 834-7186 (voice)
(773) 834-3700 (fax)
d.katz at ieee.org or dsk at ci.uchicago.edu
http://www.ci.uchicago.edu/~dsk/




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20101014/edba1093/attachment.html>


More information about the Swift-user mailing list