Home

On Oct 2, 2:42 am, Erik Wikström <Erik-wikst...@telia.com> wrote:
> On 2007-10-01 16:28, Angus wrote:

[snip]

> > In my GetValue function I tried:
>
> > value = [3];
>
> > but that doesn't work.
>
> You should use the find() method for a GetValue method since there is no
> guarantee that the key specified exists. Using the [] operator will
> create an entry if it does not exist which is not what you want from a
> GetValue method.

That was exactly the thought I had, which led me to believe
the OP didn't want operator[].

--
Chris Val

previous
next

Re: Will Python 3.0 remove the global interpreter lock (GIL)
Re: sub-classing the types in the builtin module datetime
Re: A question: Convert double to string
Re: Factoring SFINAE tests
Re: Writing Scalabe Software in C++
Nasze Dzieci
Rodzic Po Ludzku
Fundacja Iskierka
Fundacja Hobbit
Dzieci Niczyje