>
> 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
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
>
> 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
> 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
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
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'
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
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
> 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
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
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
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
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
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
;[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
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
16 matches
Mail list logo