[Swift-devel] Minor question about semantics
Tim Armstrong
tim.g.armstrong at gmail.com
Thu Oct 18 10:20:06 CDT 2012
I'm just looking at app function semantics and had a few questions about
how some things worked that weren't clear from the user manual. There were
a few things I didn't quite get and wanted to make sure I wasn't missing
something.
Is there any difference between @x and @filename(x) in an app command
line? E.g.
app (binaryfile bf) myproc (int i, string s="foo") {
myapp i s @filename(bf);
}
versus
app (binaryfile bf) myproc (int i, string s="foo") {
myapp i s @bf;
}
Also, what is the intended behaviour if you omit the @ in front of the
variable name? Is this valid? E.g.
app (binaryfile bf) myproc (int i, string s="foo") {
myapp i s bf;
}
Cheers,
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20121018/ca1907eb/attachment.html>
More information about the Swift-devel
mailing list