Menu

#6 alias colliding with local variables

open
nobody
None
3
2002-11-02
2002-05-19
No

Compiler-generated event handler uses certain local
variable names, such as "uri","localName", or "qname."

The compiler should give an error when those names are
used as alias names.

Discussion

  • Kohsuke Kawaguchi

    • priority: 5 --> 4
     
  • Kohsuke Kawaguchi

    • priority: 4 --> 3
     
  • Kohsuke Kawaguchi

    • priority: 3 --> 5
     
  • Kohsuke Kawaguchi

    Logged In: YES
    user_id=179238

    Agg, I did the same mistake again, this time with "value".
    Someone must fix this bug!

    To show my frustration, I increased the priority to 5.

     
  • Kohsuke Kawaguchi

    Logged In: YES
    user_id=179238

    With a recent change in the variable name, we now have
    $ prefix in all the "reserved" variables (such as runtime,
    uri, localName, and qname).

    This makes it pretty unlikely for those names to collide
    with aliases given in the schema, so I lower the priorty.

     
  • Kohsuke Kawaguchi

    • priority: 5 --> 3
     

Log in to post a comment.