Note that the debugger will not print anything if an expression evaluates to undefined. Perhaps this is an AS3 compiler bug?
On Aug 20, 2011, at 6:07, Donald Anderson <[email protected]> wrote: > I've filed a JIRA: > http://jira.openlaszlo.org/jira/browse/LPP-10055 > > - Don > > On Aug 19, 2011, at 5:46 PM, Raju Bitter wrote: > >> Thanks to both of you for your answers. >> >> Evaluation time: When I enter "Infinity > 0", I get a new prompt >> within half a second: >> lzx> Infinity > 0 >> lzx> >> >> ActionScript generation: >> When I enter "Infinity > 10", the AS3 file is generated >> (DebugEvaluate.as), with the following line: >> Debug.displayResult(Infinity > 10) >> >> "Infinity > 1000" works without any problems. Same is true for >> "Infinity == 0", or "typeof Infinity". >> >> For "Infinity > 0", it doesn't matter how many times I enter it into >> the debug console, the AS3 file is never generated. So it must be that >> exact expression causing the problem. >> >> On Thu, Aug 18, 2011 at 3:49 PM, Donald Anderson <[email protected]> wrote: >>> Raju, >>> Also, when you say there is no value printed out, do you get a prompt back? >>> lzx> Infinity > 0 >>> lzx> >>> or just: >>> lzx> Infinity > 0 >>> I'm wondering if it might just be spending an awfully long time running the >>> compiler the first time. Or maybe there is a response timeout somewhere >>> that is being reached. >>> On Aug 18, 2011, at 5:57 AM, Raju Bitter wrote: >>> >>> In the SWF10 debugger, when I enter "Infinity > 0", there is no >>> Boolean result value printed out. But when I do "Infinity < 0", the >>> result is "false" (Boolean). Once the debugger has evaluated "Infinity >>> < 0", "Infinity > 0" suddenly resolves to "true". >>> >>> I see that behavior only with the relatively complex app I'm working >>> on, currently running on Trunk (revision 19259). I tested with an >>> empty canvas, and "Infinity > 0" resolves to "true" as expected. >>> >>> Has anyone ever seen a similar behavior with OpenLaszlo? And what >>> might be the problem here? >>> >>> >>> -- >>> Don Anderson >>> Java/C/C++, Berkeley DB, systems consultant >>> >>> voice: 617-306-2057 >>> email: [email protected] >>> www: http://www.ddanderson.com >>> blog: http://libdb.wordpress.com >>> >>> >>> >>> >>> > > > -- > > Don Anderson > Java/C/C++, Berkeley DB, systems consultant > > voice: 617-306-2057 > email: [email protected] > www: http://www.ddanderson.com > blog: http://libdb.wordpress.com > > > > >
