Re: The use of modules (or not)
- From: "Chad Z. Hower aka Kudzu" <cpub@xxxxxxxxx>
- Date: Tue, 21 Jun 2005 16:45:02 +0300
"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/
.
- Follow-Ups:
- Re: The use of modules (or not)
- From: Robin Tucker
- Re: The use of modules (or not)
- References:
- The use of modules (or not)
- From: Morten Snedker
- Re: The use of modules (or not)
- From: Robin Tucker
- The use of modules (or not)
- Prev by Date: Re: Debugging
- Next by Date: Re: Return a string
- Previous by thread: Re: The use of modules (or not)
- Next by thread: Re: The use of modules (or not)
- Index(es):
Relevant Pages
|