Shaun, Troy saved me though. I was thinking how could I do that without
private constructors :)

On 3/27/07, shaun etherton <[EMAIL PROTECTED]> wrote:

  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



--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org

Reply via email to