<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Here's a pretty minimal test case that still fails:<div><br class="webkit-block-placeholder"></div><div><div>mixin LzFormatter {</div><div>&nbsp;&nbsp;function formatToString (control, args) {</div><div>&nbsp;&nbsp; &nbsp;// ....</div><div>&nbsp;&nbsp; &nbsp;function getarg(i) {</div><div>&nbsp;&nbsp; &nbsp; &nbsp;// ....</div><div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp;}</div><div>};</div><div><br class="webkit-block-placeholder"></div><div>One easy temp workaround out is probably to move the function outside</div><div>the other function (might need to pass extra params depending on</div><div>scoping of variables).</div><div><br class="webkit-block-placeholder"></div><div>I assume this is something we claim to allow? &nbsp;If so, I'll fix, it's</div><div>probably not too bad.</div><div><br class="webkit-block-placeholder"></div><div>- Don</div><div><br class="webkit-block-placeholder"></div><div><div>On Mar 5, 2008, at 8:37 PM, Henry Minsky wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I added the file compiler/LzFormatter.lzs back into the LFC build for swf9, and it gives this compiler error<br>when trying to compile<br><br>lzl:<br>&nbsp;&nbsp;&nbsp;&nbsp; [echo] Compiling /Users/hqm/openlaszlo/devildog/lps/includes/lfc/LFC9.swc<br> &nbsp;&nbsp;&nbsp;&nbsp; [java] while compiling /Users/hqm/openlaszlo/devildog/WEB-INF/lps/lfc/compiler/LzFormatter.lzs<br>&nbsp;&nbsp;&nbsp;&nbsp; [java] while compiling /Users/hqm/openlaszlo/devildog/WEB-INF/lps/lfc/compiler/Library.lzs<br>&nbsp;&nbsp;&nbsp;&nbsp; [java] Exception compiling scriptfile: unexpected type at top level: ASTEmptyExpression<br> &nbsp;&nbsp;&nbsp;&nbsp; [java] org.openlaszlo.sc.parser.ParseException: unexpected type at top level: ASTEmptyExpression<br>&nbsp;&nbsp;&nbsp;&nbsp; [java] &nbsp;&nbsp;&nbsp; at org.openlaszlo.sc.parser.ASTModifiedDefinition.verifyTopLevel(ASTModifiedDefinition.java:125)<br> &nbsp;&nbsp;&nbsp;&nbsp; [java] &nbsp;&nbsp;&nbsp; at org.openlaszlo.sc.SWF9Generator.visitModifiedDefinition(SWF9Generator.java:327)<br>&nbsp;&nbsp;&nbsp;&nbsp; [java] &nbsp;&nbsp;&nbsp; at org.openlaszlo.sc.CommonGenerator.visitStatement(CommonGenerator.java:795)<br>&nbsp;&nbsp;&nbsp;&nbsp; [java] &nbsp;&nbsp;&nbsp; at org.openlaszlo.sc.CommonGenerator.visitStatement(CommonGenerator.java:695)<br> <br>I haven't tried to cut this down to a smaller test case yet, just wondering if there is something obviously wrong with<br>the syntax in the file... <br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br> <a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br class="Apple-interchange-newline">--</div><div><br class="webkit-block-placeholder"></div><div>Don Anderson</div><div>Java/C/C++, Berkeley DB, systems consultant</div><div><br class="webkit-block-placeholder"></div><div>voice: 617-547-7881</div><div>email:&nbsp;<a href="mailto:dda@ddanderson.com">dda@ddanderson.com</a></div><div>www: <a href="http://www.ddanderson.com">http://www.ddanderson.com</a></div><div><br class="webkit-block-placeholder"></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline"> </div><br></div></body></html>