Hi Kay,

> We assume, that people using "using rtl;" mostly intend to use the RTL 
> string

That's my experience, too. Whenever I stumbled upon the problem you
described, replacing "using namespace rtl" with "using ::rtl::OUString"
fixed it.

> and string buffer classes. Therefor we suggest to just be a 
> little bit more precise regarding the things being "usable" from the RTL 
> namespace, by making the "using rtl;" somewhat more precise:
> 
>   using rtl::OUString;
>   using rtl::OUStringBuffer;

+1

As a related note, I sometimes got the impression (I never was able to
track this to the root cause) that there must be headers involved which
contain a "using namespace ...". I suggest we add this to our coding
guidelines: Don't use "using namespace" in (exported?) header files.

Ciao
Frank

-- 
- Frank Schönheit, Software Engineer         [EMAIL PROTECTED] -
- Sun Microsystems                      http://www.sun.com/staroffice -
- OpenOffice.org Base                       http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to