Troy Gilbert wrote:

[snip]

> That works for me. There's also a technique where you use an internal class
> (visible only within the AS source file) as a parameter to the constructor,
> thus causing the compiler to complain if anyone calls the constructor from
> outside that source file, but I find that throwing the error is enough.
> 

[snip]

Ahhh.. nice one. Its just what I've been looking for (compile time check 
to ensure noone is calling the constructor directly) sweeeet!

Thanks for the tip.

regards,
  shaun

Reply via email to