[Swift-devel] print misbehavin'

Yong Zhao yongzh at cs.uchicago.edu
Wed Apr 18 10:23:25 CDT 2007


Yeah, I wanted to wrap the karajan functions such as sum, product etc
and return handles but then realized that karajan did not keep the type
information. We need to find a way to make this right.

Yong.

On Wed, 18 Apr 2007, Ben Clifford wrote:

>
>
> 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.
>
> --
> _______________________________________________
> Swift-devel mailing list
> Swift-devel at ci.uchicago.edu
> http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel
>



More information about the Swift-devel mailing list