[Swift-devel] print misbehavin'
Ben Clifford
benc at hawaga.org.uk
Wed Apr 18 07:14:25 CDT 2007
On Thu, 12 Apr 2007, Mihael Hategan wrote:
> Actually that will break user defined procs, since they expect wrapped
> values.
user defined procs are broken either way - at present, they can't take
expressions are parameters:
q=p(3) correctly outputs a 3 in something like this:
type file {};
(file i) p(int n) {
app {
echo n stdout=@filename(i);
}
}
file q <"volume.blah">;
q=p(3);
but saying q=p(1+2) breaks with this:
Incompatible argument type for var: expected handle; got java.lang.Double.
Offending argument: 3.0
for pretty much the same reason - its expecting a wrapped value but
expression evaluation is providing an unwrapped value.
bleugh.
--
More information about the Swift-devel
mailing list