[pyicu-dev] [PATCH] Add correct namespace declarations everywhere

Steven R. Loomis srl at icu-project.org
Tue Sep 11 10:00:43 PDT 2007


You should automatically get 'using namespace icu;' in C++, it's in  
uversion.h under U_NAMESPACE_USE

I'm not sure why it is necessary to say icu::Locale explicitly.

Can you explain what you mean by 'additional namespace declarations' ?

-s

On 11 Set 2007, at 09:25, Fredrik Roubert wrote:
> On 9/11/07, Andi Vajda <vajda at osafoundation.org> wrote:
>
>> Why is the namespace patch necessary ?
>
> In ICU 3.8 there will be a number of additional namespace declarations
> (eg. in unistr.h) that will require these additional namespace
> declarations in PyICU. And they don't hurt while using ICU 3.6 either.
>
>> Wouldn't it be me more convenient to add a global 'using namespace  
>> icu;'
>> statement somewhere instead ?
>
> Maybe. I don't know enought about the design decisions in ICU and
> PyICU to have an opinion about that, so I just followed the style
> currently used.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/pyicu-dev/attachments/20070911/e665690c/attachment.htm


More information about the pyicu-dev mailing list