[Swift-devel] simple parameter test hangs

Michael Wilde wilde at mcs.anl.gov
Fri Oct 5 00:03:13 CDT 2007


-- this one doesnt hang. what i removed was the file var in the params 
struct:

type messagefile;

type file;

type params {
   string x;
   string y;
};

(messagefile t) pecho (params p ) {
     app {
         echo "foo" stdout=@filename(t);
     }
}

string fn[] = ["f001","f002"];
file   fv[] <array_mapper;files=fn>;

params p;
p.x = "x1111";
p.y = "y2222";

messagefile outfile <"hello2.txt">;

outfile = pecho(p);


On 10/4/07 11:57 PM, Michael Wilde wrote:
> -- This program hangs in the same way:
> type messagefile;
> 
> type file;
> 
> type params {
>   string x;
>   string y;
>   file f;
> };
> 
> (messagefile t) echo ( file p1, file p2, string s1, string s2 ) {
>     app {
>         echo @p1 @p2 s1 s2 stdout=@filename(t);
>     }
> }
> 
> (messagefile t) pecho (params p ) {
>     app {
>         echo p.x p.y @p.f stdout=@filename(t);
>     }
> }
> 
> string fn[] = ["f001","f002"];
> file   fv[] <array_mapper;files=fn>;
> 
> params p;
> p.x = "x1111";
> p.y = "y2222";
> p.f = fv[0];
> 
> messagefile outfile <"hello2.txt">;
> 
> outfile = pecho(p);
> 



More information about the Swift-devel mailing list