<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Greg, thanks for reporting this.</div>
<div><br>
</div>
<div>We can reproduce it and have created a bug ticket:</div>
<div> <span class="Apple-style-span" style="font-family: Consolas; font-size: medium; "><a href="https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=1207">https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=1207</a></span></div>
<div><br>
</div>
<div>It seems that this feature was not in the test suite. Will post when we have a fix.</div>
<div><br>
</div>
<div>- Mike</div>
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span><Bronevetsky>, Greg <<a href="mailto:bronevetsky1@llnl.gov">bronevetsky1@llnl.gov</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, February 27, 2014 6:31 PM<br>
<span style="font-weight:bold">To: </span>Swift User <<a href="mailto:swift-user@ci.uchicago.edu">swift-user@ci.uchicago.edu</a>><br>
<span style="font-weight:bold">Subject: </span>[Swift-user] array append<br>
</div>
<div><br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I’m trying to use the array append function in Swift 0.94.1, based on Section 2.3 of the user guide (<a href="http://swift-lang.org/guides/release-0.94/userguide/userguide.html">http://swift-lang.org/guides/release-0.94/userguide/userguide.html</a>)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Given the following program:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">int[auto] array;<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">foreach i in [1:100] {<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> append(array, i * 2);<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">}<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I run swift on it and get this following error:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">> swift test.swift<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Could not start execution<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> Compile error in foreach statement at line 3<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> Compile error in procedure invocation at line 4<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> Procedure append is not declared.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">How should I be using the append function to avoid this error? Thank you!<span style="font-size:10.5pt;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;color:#1F497D">Greg Bronevetsky</span><span style="font-size: 12pt; color: rgb(31, 73, 125); font-family: 'Times New Roman', serif; "><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;color:#1F497D">Lawrence Livermore National Lab</span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;color:#1F497D">(925) 424-5756</span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;color:#1F497D"><a href="mailto:bronevetsky@llnl.gov"><span style="color:blue">bronevetsky@llnl.gov</span></a></span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;color:#1F497D"><a href="http://greg.bronevetsky.com"><span style="color:blue">http://greg.bronevetsky.com</span></a></span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</blockquote>
</span>
</body>
</html>