[Laszlo-dev] porting to legals: is static a new keyword?

P T Withington ptw at openlaszlo.org
Mon Jan 22 18:42:07 PST 2007


Indeed.  `static` is a reserved word (even in JS1, although we did  
not complain about it).  Seems like a crappy language design to  
reserve a keyword that can only appear in a few places and make it  
totally illegal, but that is what the standard says.  Sorry.

On 2007-01-22, at 20:30 EST, Benjamin Shine wrote:

>
> Is static supposed to be a new keyword? This compiles ok in trunk,  
> but gives a compilation warning in legals. Sounds like this is a  
> case for the release notes, and the documentation?
>
> <!-- Copyright 2007 Laszlo Systems -->
> <canvas>
>     <!-- based on diamond/client/framework/placementlayout.lzx -->
>     <script>
>         var o = {};
>         o.static = null; // this line gives a compilation error:  
> test-static.lzx:7:11: Syntax error: the token "static" was not  
> expected at this position.
>     </script>
> </canvas>
>
>



More information about the Laszlo-dev mailing list