Re: The use of modules (or not)
- From: "Robin Tucker" <idontwanttobespammedanymore@xxxxxxxxxxxxxxx>
- Date: Tue, 21 Jun 2005 15:54:01 +0100
Yes thats true - and of course if you are using the singleton pattern, your
singleton object can be the only instance. Many times you might want to use
the class elsewhere in non-global situations.
"Chad Z. Hower aka Kudzu" <cpub@xxxxxxxxx> wrote in message
news:Xns967CAA6545B96cpubhowerorg@xxxxxxxxxxxx
> "Robin Tucker" <idontwanttobespammedanymore@xxxxxxxxxxxxxxx> wrote in
> news:d9900l$k7f$1$8300dec7@xxxxxxxxxxxxxxxx:
>> If you really want to use globals, google for the singleton pattern.
>> There is absolutely nothing wrong with "global" variables in this
>> context, as long as they are managed properly and you protect the
>
> You dont need a singleton to make globals. Its really easy. Declare a new
> class, and add some
> public static (shared in VB) fields, thats it.
>
>
> --
> Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
> "Programming is an art form that fights back"
>
> Empower ASP.NET with IntraWeb
> http://www.atozed.com/IntraWeb/
.
- References:
- The use of modules (or not)
- From: Morten Snedker
- Re: The use of modules (or not)
- From: Robin Tucker
- Re: The use of modules (or not)
- From: Chad Z. Hower aka Kudzu
- The use of modules (or not)
- Prev by Date: Re: Design question regarding Web Site Monitoring
- Next by Date: Guids, Unique Id's and Hashes
- Previous by thread: Re: The use of modules (or not)
- Next by thread: RE: The use of modules (or not)
- Index(es):
Relevant Pages
|