I don't really care whether they allow private constructors or not, as
long as they provide some way of accomplishing the same thing.
Specifically, I want to be able to:
1) Limit the number of instances of certain classes (singletons,
enumerations).
2) Have methods which are not attached to specific class instances.
3) Be able to create classes that cannot be instantiated themselves but
can be superclasses of concrete classes.

#3 for example, is much better implemented with the "abstract" keyword
than with private constructors, but AS3.0 doesn't have the "abstract"
keyword, so now there is no way to elegantly accomplish this (i.e., in
such a way that errors are caught at compile-time instead of runtime).

So, yeah, make all constructors public if you must, but give us some
other way to accomplish these things.
--
T. Michael Keesey

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to