wong_powah@yahoo.ca wrote:
Quote:
dasjotre wrote: Quote:
The original implementation had a life-time functionality that your's
doesn't.
| >
What is your meaning of "life-time functionality"?
My implementation use the "class static data member" mechanism. It
acts as a global object that belongs to its class type. Its life time
is the same as a global object. However, it is not entered into the
program's global namespace.
|
The original didn't create the pointed-at FastMap till the first time
the containing class got an instance created. Your implementation
creates it earlier because it is a static. That's not necessarily a
problem, just that you should be aware of the time-of-creation
issue that is going on here. For example, there might be side
effects of creating the FastMap, and these might be important.
Or, it might be that your program could possibly run without
ever actually creating an instance of the containing class, and
so you might not actually ever need the FastMap. Again, all
that might not matter, you should just be aware of it in case it
actually does matter.
Socks