[haXe] function name<T>():Void;

Marcus Bergstrom marcus at quickform.net
Mon Jan 22 17:41:17 CET 2007


List,

You need to explain something to me. I understand Class parameters  
(class Array<T>) and stuff, but I am not quite clear on how it works  
for methods. If we take the Type class as an example, it has no Class  
parameters, but you can find several of these:

static function createInstance<T>(cl : Class<T>, args :  
Array<Dynamic>) : T

What does the "T" in createInstance<T> actually do.
What is the difference between that and class parameters.
Can someone please clarify this?

Thanks,

M.

Marcus Bergstrom
marcus at quickform.net



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20070122/238071b2/attachment.htm


More information about the Haxe mailing list