Minor point: you probably don't need to disallow 'in' in the typeexpression, only in the initializer.

Approved either way.

On 2008-01-09, at 16:16 EST, Donald Anderson wrote:

Change 20080109-dda-l by [EMAIL PROTECTED] on 2008-01-09 16:00:35 EST
   in /Users/dda/laszlo/src/svn/openlaszlo/trunk
   for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Script compiler: Backported :* typing from devildog to trunk; added typing in 'for var in' statements.

New Features: Any variable can be declared with :* (in addition to :typename as before).

Bugs Fixed: LPP-5059

Technical Reviewer: ptw (pending)
QA Reviewer: hminsky (pending)
Doc Reviewer: (pending)

Documentation:
  Conforms with ECMAScript-4 draft standard.

Release Notes:

Details:
  One part of this change (:* types) is backported from devildog -
  the change was small and relatively independent and should have been
  made in trunk/RingDing before.

  The other part of this change is a small grammar change to allow
  typing in 'for var in' statements, like so:
    for (var:typename in xxx)
  or
    for (var:* in xxx)
  etc.

Tests:
  smoketest

Updated test/typevar.lzx to have a couple tests for 'for var in' and :*, which
  were not there before.

Files:
M      test/typevar.lzx
M      WEB-INF/lps/server/sc/src/org/openlaszlo/sc/Parser.jjt
M WEB-INF/lps/server/sc/src/org/openlaszlo/sc/parser/ ASTIdentifier.java

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20080109-dda-l.tar



--

Don Anderson
Java/C/C++, Berkeley DB, systems consultant

voice: 617-547-7881
email: [EMAIL PROTECTED]
www: http://www.ddanderson.com





Reply via email to