[C++-sig] GNU gettext and "_"

Niki Spahiev niki at vintech.bg
Thu Jun 20 15:35:35 CEST 2002


David Abrahams wrote:
> I'm working on slicing now and I find myself in need of a way to represent
> x[:y]. This is technically not equivalent to x[0:y] since you can slice on
> any type. 

AFAIK *Python* can't slice on anything but integer. And x[y:] is the 
same as x[y:sys.maxint] (from recent thread in c.l.py)

> "Obviously", the answer is to use
> 
>     x.slice(_,y)
> 
> but I suppose that's going to collide with gettext again.
> 
> I suppose we could check "#if defined(_)" and supply some other symbol for
> those people who need gettext compatibility. Suggestions?

IMHO _ alone is not problem. Most compilers wont cofuse it with _()

Niki Spahiev






More information about the Cplusplus-sig mailing list