[haXe] haXe 1.03 Released !

Nicolas Cannasse ncannasse at motion-twin.com
Fri Jun 23 20:08:06 CEST 2006


Hi list,

haXe 1.03 has just been released on http://haxe.org

Changes are the following :
   - the documentation generator is now packaged has "haxedoc.exe"
   - added optional parameters (for functions and enums)
   - added open anonymous types (see below)
   - added explicit "override" when overriding methods
     (this is the only backward incompatible change)

Open Anonymous Types :

in haXe 1.02 the following function will cause an Error
"Unknow has no field x" :

function f(o) {
    return o.x + o.y;
}

Now, the inferred type of "o" is the anonymous type
"{ x : Int, y : Int }".

Since anonymous types are structural in haXe, that means that you can
call "f" with any object having theses two fields "x" and "y". This is
powering up the type inference algorithm of haXe.

All changes :
  * haxedoc executable now part of the distribution
  * removed selectDB from the neko.db.Connection API
  * added optional parameters with selection
  * removed --no-flash-opt-args
  * changes in SWF packages handling
  * fixed optional leading comma in anonymous object and array values
  * fixed bug in inheritend constructor type parameters
  * fixed bug in type_field with inherited type parameters
  * added haxe.Proxy
  * added code transformations for swf/js block variables
  * fixed very tricky bug with constraint parameters used
    together with polymorphic methods
  * added selective import (import x.y.Class.InnerType)
  * added optional enum constructor parameters
  * added opened anonymous types (no more Unknown has no field...)
  * fixed "MovieClip extends flash.MovieClip".
  * added Reflect.copy
  * added neko.Random
  * added Date.fromString
  * fixed bug in haxe.Unserializer, slighlty optimized haxe.Serializer
  * added __setfield magic (complete __resolve)
  * added explicit override when overriding methods

Enjoy !

Nicolas



More information about the Haxe mailing list