Function Constructors as a type?

Kris Zyp kriszyp at xucia.com
Tue Jun 26 13:51:37 PDT 2007


Is it possible to use a function constructor as a type? For example:
function F() {}
var f : F = new F;
I assume this is not allowed, although I would think it would be nice if it
were allowed, but I can't seem to find anywhere in the spec where this is
explicitly stated and the current reference implementation goes into an
infinite loop when this is executing, I assume that is not the intended
behavior :).
Kris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.mozilla.org/pipermail/es-discuss/attachments/20070626/ad1e1cf1/attachment-0002.html 


More information about the Es4-discuss mailing list