<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font class="Apple-style-span" face="Times">Ben:</font></div><div><font class="Apple-style-span" face="Times"><br></font></div><div><font class="Apple-style-span" face="Times">I can't recall whether we talked about this before, but if we could choose to run in a mode whereby compound procedures wait for all input parameters, that could simplify debugging. But maybe the semantics are now rich enough that this would not necessarily be correct.</font></div><div><font class="Apple-style-span" face="Times"><br></font></div><div><font class="Apple-style-span" face="Times">Ian.</font></div><div><br></div><br><div><div>On Mar 22, 2009, at 4:47 PM, Ben Clifford wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>As far as I can tell from a brief poke around, this is what is happening <br>for you:<br><br>Compound procedures do not themselves wait for their input parameters <br>to all be ready to use. instead, they start trying to run all component <br>pieces.<br><br>If some data necessary for some component piece is not ready yet, that <br>component piece will wait, so the compound procedure doesn't need to (and <br>indeed shouldn't, because that reduces potential parallelism in some <br>cases)<br><br>You say this:<br><br>analyseDatabase(external i) {                                                   <br>  trace("i am analyseDatabase");                                                <br>}   <br><br>The trace call does not have any need to wait for i to be ready. So it <br>doesn't wait for i to be ready.<br><br>If you say this:<br><br>analyseDatabase(external i) {<br>  trace("i am analyseDatabase", i);<br>}<br><br>then the trace call must wait for i to be ready (and fortuitously in the <br>present implementation doesn't explode even though i cannot be <br>meaningfully traced).<br><br>With that change, you'll see the behaviour you want.<br><br>-- <br><br>_______________________________________________<br>Swift-devel mailing list<br><a href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel<br></div></blockquote></div><br></body></html>