[Laszlo-dev] [JIRA] Resolved: (LPP-5816) simple test case for line numbers still off in script output
Donald Anderson
dda at ddanderson.com
Thu Apr 17 13:34:48 PDT 2008
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++, Berkeley DB, systems consultant
voice: 617-547-7881
email: dda at ddanderson.com
www: http://www.ddanderson.com
More information about the Laszlo-dev
mailing list