[Swift-devel] Is the use of args within functions legal?
Yadu Nand
yadudoc1729 at gmail.com
Wed Sep 18 14:44:46 CDT 2013
Ketan reported a script failing for him on trunk alone and this is the
condensed
form of his script that fails consistently on trunk:
func() {
string FOO=arg("foo");
string BAR="hello";
tracef("FOO : %s | BAR : %s\n", FOO, BAR);
}
func();
This script does pass on 0.94RC3, but not on Trunk. Could someone confirm
if this
is valid syntax ?
Reversing the order of the assignments to the following, gets the test to
pass:
func() {
string BAR="hello";
string FOO=arg("foo");
tracef("FOO : %s | BAR : %s\n", FOO, BAR);
}
func();
Thanks,
Yadu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20130918/dfe6a7c5/attachment.html>
More information about the Swift-devel
mailing list