RE: [Flashcoders] Singleton in AS3

2005-11-14 Thread zwetan
> > They do. With internal access modifier you're still able to create an > instance of class directly. > Not outside of the package, or if you have a code exemple That show that behaviour I would be interested to see it. zwetan ___ Flashcoders mail

Re: [Flashcoders] Singleton in AS3

2005-11-14 Thread Michael Klishin
zwetan wrote: Have anyone got ideas how to implement Singleton pattern in AS3 best? Constructor in AS3 can only be public or internal, which is not private anyway. .. Well, internal should be enough to implement a Singleton Just have a public const in the package initialized with an internal

RE: [Flashcoders] Singleton in AS3

2005-11-14 Thread zwetan
> > Have anyone got ideas how to implement Singleton pattern in AS3 best? > Constructor in AS3 can only be public or internal, which is not private > anyway. .. > Well, internal should be enough to implement a Singleton Just have a public const in the package initialized with an internal class o

Re: [Flashcoders] Singleton in AS3

2005-11-12 Thread Luke Bayes
> What?!! Please tell me you are referring strictly in the sense of > ActionScript. > > There are many elegant designs that take advantage of Singletons.. Of course there are really great reasons to implement a Singleton, it's just that developers (myself included) can often overuse it in cases

RE: [Flashcoders] Singleton in AS3

2005-11-12 Thread Fruber Malcome
Completely agree. Thanks.. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Friday, November 11, 2005 9:04 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Singleton in AS3 Security by obscurity, while applicable & satisf

Re: [Flashcoders] Singleton in AS3

2005-11-11 Thread JesterXL
mespaces for MXML (I think). - Original Message - From: "Fruber Malcome" <[EMAIL PROTECTED]> To: "'Flashcoders mailing list'" Sent: Friday, November 11, 2005 10:24 PM Subject: RE: [Flashcoders] Singleton in AS3 There are many cases where you'

RE: [Flashcoders] Singleton in AS3

2005-11-11 Thread Fruber Malcome
er -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Wilson Sent: Friday, November 11, 2005 10:40 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Singleton in AS3 Why should a public constructor prevent the creation of a Singleto

RE: [Flashcoders] Singleton in AS3

2005-11-11 Thread Fruber Malcome
th writing applications using AS and neutral for other languages like C#, C++ etc.? Thanks - Fruber -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Luke Bayes Sent: Friday, November 11, 2005 3:07 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Si

Re: [Flashcoders] Singleton in AS3

2005-11-11 Thread Luke Bayes
> Have anyone got ideas how to implement Singleton pattern in AS3 best? > Constructor in AS3 can only be public or internal, which is not private > anyway Hey Michael, One way (as mentioned in another email) is to throw an error in the constructor if some restriction has not been met. The follow

Re: [Flashcoders] Singleton in AS3

2005-11-11 Thread Michael Klishin
Chris Wilson wrote: Agreed on all points, but when the deadline is approaching and the code needs to be done... That said, I'm a pragmatist when it comes to finishing a project. :-] For sure. But as long as AS3 is going to become one of "senior programming languages"... ;) -- Michael "An

Re: [Flashcoders] Singleton in AS3

2005-11-11 Thread JesterXL
ynamic why we get more strict, but bottom line, both started from different points and have different business goals. - Original Message - From: "Chris Wilson" <[EMAIL PROTECTED]> To: "'Flashcoders mailing list'" Sent: Friday, November 11, 2005 1:59

RE: [Flashcoders] Singleton in AS3

2005-11-11 Thread Chris Wilson
Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Friday, November 11, 2005 1:51 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Singleton in AS3 That's fine for use Flashers who are used to using such methods to get

Re: [Flashcoders] Singleton in AS3

2005-11-11 Thread JesterXL
enough business use cases in my opinion to support it. - Original Message - From: "Chris Wilson" <[EMAIL PROTECTED]> To: "'Flashcoders mailing list'" Sent: Friday, November 11, 2005 1:40 PM Subject: RE: [Flashcoders] Singleton in AS3 Why should

RE: [Flashcoders] Singleton in AS3

2005-11-11 Thread Chris Wilson
you're writing the code, you'll do it the proper way anyhow, no? -Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Friday, November 11, 2005 1:32 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Singleton in AS3 You

Re: [Flashcoders] Singleton in AS3

2005-11-11 Thread JesterXL
;[EMAIL PROTECTED]> To: "Flashcoders ML" Sent: Thursday, November 10, 2005 12:16 PM Subject: [Flashcoders] Singleton in AS3 Hi guys, Have anyone got ideas how to implement Singleton pattern in AS3 best? Constructor in AS3 can only be public or internal, which is not private anyway

[Flashcoders] Singleton in AS3

2005-11-11 Thread Michael Klishin
Hi guys, Have anyone got ideas how to implement Singleton pattern in AS3 best? Constructor in AS3 can only be public or internal, which is not private anyway. .. -- Michael "Antares" Klishin, Email: [EMAIL PROTECTED] Web: www.novemberain.com Non progredi est regredi