[C++-sig] Boost.Python v2: beginning of generalized object support
David Abrahams
david.abrahams at rcn.com
Fri Jul 19 15:41:02 CEST 2002
----- Original Message -----
From: "Niki Spahiev" <niki at vintech.bg>
To: <c++-sig at python.org>
Sent: Friday, July 19, 2002 9:39 AM
Subject: Re: [C++-sig] Boost.Python v2: beginning of generalized object
support
> David Abrahams wrote:
> > Hi,
> >
> > Now that I'm revisiting this issue for my June monthly report, I'm not
sure
> > that using the name for an inline member function "_" with one argument
> > would actually cause any problems in real code. AFAICT, the result
would be
> > that the member function would be silently renamed "gettext" in the
common
> > case... and all uses of the function will also be silently renamed to
call
> > x.gettext(...). Yes, technically this gives an ODR violation if the
file is
> > included with and without the macro defined, but I know of no real
> > compilers which will care about that.
> >
> > Am I missing something here?
>
>
> obj._("test") will include string "test" for translation (i18n)
How? What is the mechanism that causes it to happen?
I don't see how
#define _(x) gettext(x)
can cause it.
-Dave
More information about the Cplusplus-sig
mailing list