[Swift-user] Returning boolean from a procedure
Mike Wilde
wilde at mcs.anl.gov
Sat Mar 3 17:01:14 CST 2007
I think this was discussed a while back on the list but I cant find it: Can a
procedure return a scalar, like Boolean, so that in the following tutorial
example (q20) we can show the if-condition value coming from a function rather
than a constant?
I also cant find where the current language open issues are. Ben, I though
you said these were in a bugzila bug but cant find it.
Sorry for asking redundant questions...
- Mike
type messagefile {}
(messagefile t) greeting (string s) {
app {
echo s stdout=@filename(t);
}
}
messagefile outfile <"hello20.txt">;
boolean morning = true;
if(morning) {
outfile = greeting("good morning");
} else {
outfile = greeting("good afternoon");
}
More information about the Swift-user
mailing list