[haXe] Array length

Nicolas Cannasse ncannasse at motion-twin.com
Sun Jan 28 16:41:45 CET 2007


> I have an impression that this subject was already treated, but I
> couldn't find it.
> 
> Is there a way to define an array length by its type?
> If I wanted to define a generic Point class, not only for R^2, but for R^n,
> how could I do to strictly type its dimension?

No, you can't.

Nicolas



More information about the Haxe mailing list