Re: Memoization and encapsulation
On Sat, 31 Dec 2005 09:23:05 +0100, Just wrote:
> There's no need to declare _cache as global, since you're not assigning
> to it. So this global isn't all that pesky after all...
It is still a global variable, with all the potential Badness thereof,
even if you don't have to declare it.
--
Steven.
.
Relevant Pages
- Re: Caching DBI prepare statements for re-use with an Apache server
... > Dave Cardwell wrote: ... >> Is there any way to cache the statement handles returned by prepare or ... Just declare a package-scoped variable to hold it using either 'use ... and quick to offer up common sense at the shrine of ... (comp.lang.perl.misc) - Re: Machine hangs when writing in battery backed SRAM
... Fabio Garufi mumbled in his beard: ... >> declare that memory region uncacheable? ... The hang might be when the cache ... (comp.os.linux.embedded) - Re: Machine hangs when writing in battery backed SRAM
... Fabio Garufi mumbled in his beard: ... >> declare that memory region uncacheable? ... The hang might be when the cache ... (comp.os.linux.development.system) - Re: Machine hangs when writing in battery backed SRAM
... Fabio Garufi mumbled in his beard: ... >> declare that memory region uncacheable? ... The hang might be when the cache ... (comp.os.linux.development.apps) - Re: Declaring variables
... some ways this is less ambiguous than even C where you can declare a ... variable without assigning a value. ... We shouldn't ignore the fact that declarations unambiguously say "the programmer intends to use such-and-such a name for a value of a specific type". ... (comp.lang.python) |
|