<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<font class="Apple-style-span" face="Tahoma" size="2">Hi,</font><div><font class="Apple-style-span" face="Tahoma" size="2">I have been using suite.sh to run all available tests for swift, and there are a couple of them that use writeData() to generate output; however the output seems odd to me. </font></div><div><font class="Apple-style-span" face="Tahoma" size="2">For instance, the following script:</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><pre style="word-wrap: break-word; white-space: pre-wrap; "><font class="Apple-style-span" face="Tahoma" size="2">type file;
type S { string l; string c; string r; }
S s[];
file f <"writeDataStructArray2.out">;
f=writeData(s);
s[2].l = "baz";
s[2].c = "BAZ";
s[2].r = "Baz";
s[3].l = "qux";
s[3].c = "QUX";
s[3].r = "Qux";
s[0].l = "foo";
s[0].c = "FOO";
s[0].r = "Foo";
s[1].l = "bar";
s[1].c = "BAR";
s[1].r = "Bar";
s[4].l = "frrrr";
s[4].c = "FRRRR";
s[4].r = "Frrrr";</font></pre><pre style="word-wrap: break-word; white-space: pre-wrap; "><font class="Apple-style-span" face="Tahoma" size="2">Swift 0.92.1 generates writeDataStructArray2.out:</font></pre><pre style="word-wrap: break-word; "><font class="Apple-style-span" face="Tahoma" size="2"><span class="Apple-style-span" style="white-space: pre-wrap;">r c l
Foo FOO foo
Bar BAR bar
Baz BAZ baz
Qux QUX qux
Frrrr FRRRR frrrr </span></font></pre><pre style="word-wrap: break-word; "><font class="Apple-style-span" face="Tahoma" size="2"><span class="Apple-style-span" style="white-space: pre-wrap;"><br></span></font></pre><pre style="word-wrap: break-word; "><font class="Apple-style-span" face="Tahoma" size="2"><span class="Apple-style-span" style="white-space: pre-wrap;">But, Trunk generates writeDataStructArray2.out</span></font></pre><pre style="word-wrap: break-word; "><font class="Apple-style-span" face="Tahoma" size="2"><span class="Apple-style-span" style="white-space: pre-wrap;">r c l
s[0].r:string = Foo - Closed s[0].c:string = FOO - Closed s[0].l:string = foo - Closed
s[1].r:string = Bar - Closed s[1].c:string = BAR - Closed s[1].l:string = bar - Closed
s[2].r:string = Baz - Closed s[2].c:string = BAZ - Closed s[2].l:string = baz - Closed
s[3].r:string = Qux - Closed s[3].c:string = QUX - Closed s[3].l:string = qux - Closed
s[4].r:string = Frrrr - Closed s[4].c:string = FRRRR - Closed s[4].l:string = frrrr - Closed
</span></font></pre><div><font class="Apple-style-span" face="Tahoma" size="2"><span class="Apple-style-span" style="white-space: pre-wrap;"><br></span></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><span class="Apple-style-span" style="white-space: pre-wrap; ">and I am uncertain whether to consider trunk output as correct or not. </span></font></div></div><div><font class="Apple-style-span" face="Tahoma" size="2"><span class="Apple-style-span" style="white-space: pre-wrap; "><br></span></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><span class="Apple-style-span" style="white-space: pre-wrap; ">Alberto.</span></font></div> </div></body>
</html>