[haXe] 1.15 question?

Petersson, Tobias Tobias.Petersson at laerdal.dk
Wed Aug 29 15:13:40 CEST 2007


Puh, yeah that's right =)


Thanks!

 

From: haxe-bounces at lists.motion-twin.com
[mailto:haxe-bounces at lists.motion-twin.com] On Behalf Of Franco
Ponticelli
Sent: den 29 augusti 2007 14:54
To: The haXe compiler list
Subject: Re: [haXe] 1.15 question?

 

If I understood it correctly, what it is prevented is this:

class A<T> {
  public static function f(m : T) : T {
    // ...
  }
}

And not this:

class A {
  public static function f<T>(m : T) : T {
    // ...
  }
}

In practice you loose nothing and the compiler cannot be misguided by a
class type parameter where this does not really make too much sense. 

On 8/29/07, Petersson, Tobias <Tobias.Petersson at laerdal.dk> wrote:

-          forbid usage of type parameters in static functions 

 

Why? This makes the language a LOT weaker!

 


--
haXe - an open source web programming language
http://haxe.org

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20070829/2600704c/attachment.htm


More information about the Haxe mailing list