@@ -11,8 +11,8 @@
allowed enum catching
added remoting proxys
allowed neko.Web API commandline emulation outside mod_neko
- fixed type hole : Anon :> Instance only if interface
- added signatures
+ remove subtyping Anon :> Instance
+ added signatures, Iterator is now a signature
2006-05-02: RC1
added the Socket class
@@ -23,7 +23,7 @@
* DAMAGE.
*/
-class IntIter implements Iterator<Int> {
+class IntIter {
var min : Int;
var max : Int;
@@ -34,13 +34,11 @@ class IntIter implements Iterator<Int> {
}
public function hasNext() {
- return min != max;
+ return min < max;
public function next() {
- if( min < max )
- return min++;
- return min--;
+ return min++;
-interface Iterator<T> {
+signature Iterator<T> {
function hasNext() : Bool;
function next() : T;
@@ -24,7 +24,7 @@
package neko.db;
-class ResultSet implements Iterator<Dynamic> {
+class ResultSet {
public property length(getLength,null) : Int;
public property nfields(getNFields,null) : Int;