[haXe] 1.15 question?
Franco Ponticelli
franco.ponticelli at gmail.com
Wed Aug 29 14:54:12 CEST 2007
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/a125ddaa/attachment.htm
More information about the Haxe
mailing list