[Laszlo-dev] [JIRA] Resolved: (LPP-5816) simple test case for line numbers still off in script output
P T Withington
ptw at laszlosystems.com
Thu Apr 17 13:44:53 PDT 2008
All good ideas. For now, I think nameFunctions should imply trackLines.
On 2008-04-17, at 16:34 EDT, Donald Anderson wrote:
>
> On Apr 17, 2008, at 3:19 PM, P T Withington (JIRA) wrote:
>
>> Resolution: Fixed
>>
>> You're right, adding -DtrackLines results in:
>>
>> $lzc$class_hei1 = Class.make("$lzc$class_hei1", LzView, ["ae",
>> /* -*- file: nexb.lzx#5.2 -*- */
>> function ae () {
>> with (this) {
>> /* -*- file: #1 -*- */
>> window.alert("hei")
>> }}
>>
>> I wonder if some of the confusion is that this feature is
>> controlled by a 'compile-time constant' (-DtrackLines) and the
>> other is controlled by a compiler option (---option
>> nameFunctions). I think they should both be options, since
>> trackLines should not affect code execution.
>
>
> Maybe time to rethink how this is controlled. Maybe --option
> nameFunctions should always enable
> trackLines? Is it helpful to break them apart? If so, allow --
> option trackLines ?
> It seems haphazard - maybe that whole list in Compiler.java should
> be organized so
> --option can be used with each one? I could hook on a usage string
> for each as well.
>
>
> --
>
> Don Anderson
> Java/C/C++, Berk
More information about the Laszlo-dev
mailing list