Re: [patch] fix babel call part of bug 3569

2007-05-09 Thread Andre Poenitz
On Wed, May 09, 2007 at 10:25:29PM +0200, Bernhard Roider wrote: > Andre Poenitz schrieb: > >On Tue, May 08, 2007 at 12:13:29AM +0200, Uwe Stöhr wrote: > if ( > (a == 1) && (b == 1) && > ((C == "bla") || (C == "blub")) > ) > > I mean how can the OR be

Re: [patch] fix babel call part of bug 3569

2007-05-09 Thread Bernhard Roider
Andre Poenitz schrieb: On Tue, May 08, 2007 at 12:13:29AM +0200, Uwe Stöhr wrote: if ( (a == 1) && (b == 1) && ((C == "bla") || (C == "blub")) ) I mean how can the OR be included into an AND? it's not a c++ question, it's just boolean algebra i don't think it's possible

Re: [patch] fix babel call part of bug 3569

2007-05-08 Thread christian . ridderstrom
I think this got sent to the wrong list :-) On Tue, 8 May 2007, Uwe Stöhr wrote: I haven't found btw. no C++ manual by googling that describes the case where AND and OR are embedded to each other. Do you know one? That part is just from the precedence of the operators. When that order isn't

Re: [patch] fix babel call part of bug 3569

2007-05-08 Thread christian . ridderstrom
On Tue, 8 May 2007, Abdelrazak Younes wrote: Uwe Stöhr wrote: + else + tmp = string(""); And by the way, please use tmp.clear() instead. And stick to less than about 72 characters/line plese :-) /C -- Christian Ridderström, +46-8-768 39 44

Re: [patch] fix babel call part of bug 3569

2007-05-08 Thread christian . ridderstrom
On Tue, 8 May 2007, Uwe Stöhr wrote: You need to enclose the full expression between brackets. if (a == 1 && b == 1 && (C == "bla" || C == "blub")) { ... } This is what I first tried, but it doesn't compile: " Syntax error "(" " Then you have some other problem that's confusing you. /C

Re: [patch] fix babel call part of bug 3569

2007-05-08 Thread Abdelrazak Younes
Uwe Stöhr wrote: + else + tmp = string(""); And by the way, please use tmp.clear() instead. Abdel.

Re: [patch] fix babel call part of bug 3569

2007-05-08 Thread Abdelrazak Younes
Uwe Stöhr wrote: Attached is the patch that fixes the problem, that babel isn't called when you are foreign languages in CJK and Armenian-documents. I think this is now the last remaining babel bug. Is my patch correct? It works here for all my testcases but you have perhaps a better solution

Re: [patch] fix babel call part of bug 3569

2007-05-08 Thread Uwe Stöhr
> You need to enclose the full expression between brackets. > > if (a == 1 && b == 1 && (C == "bla" || C == "blub")) { > ... > } This is what I first tried, but it doesn't compile: " Syntax error "(" " --- What about my patch? regards Uwe

Re: [patch] fix babel call part of bug 3569

2007-05-08 Thread christian . ridderstrom
On Tue, 8 May 2007, Abdelrazak Younes wrote: I am not sure I understand your question though... Abdel. I think the "problem" is that his code was valid to begin with... if ( (a == 1) && (b == 1) && ((C == "bla") || (C == "blub")) ) ... /Christian -- Christian Ridderström,

Re: [patch] fix babel call part of bug 3569

2007-05-08 Thread Helge Hafting
Uwe Stöhr wrote: Attached is the patch that fixes the problem, that babel isn't called when you are foreign languages in CJK and Armenian-documents. I think this is now the last remaining babel bug. Is my patch correct? It works here for all my testcases but you have perhaps a better solution

Re: [patch] fix babel call part of bug 3569

2007-05-08 Thread Abdelrazak Younes
Uwe Stöhr wrote: Andre Poenitz schrieb: Why that? In Delphi I use such contructs very often. The syntax would then be if (a = 1) and (b = 1) and ( (C = "bla") or (C = "blub") ) then So I assumed that this is possible in C++ too. I still see an 'or'. Yes of course. I don't want to le

Re: [patch] fix babel call part of bug 3569

2007-05-07 Thread Uwe Stöhr
Andre Poenitz schrieb: Why that? In Delphi I use such contructs very often. The syntax would then be if (a = 1) and (b = 1) and ( (C = "bla") or (C = "blub") ) then So I assumed that this is possible in C++ too. I still see an 'or'. Yes of course. I don't want to let it go. I just wa

Re: [patch] fix babel call part of bug 3569

2007-05-07 Thread Andre Poenitz
On Tue, May 08, 2007 at 12:13:29AM +0200, Uwe Stöhr wrote: > >> if ( > >>(a == 1) && (b == 1) && > >>((C == "bla") || (C == "blub")) > >> ) > >> > >>I mean how can the OR be included into an AND? > > > > it's not a c++ question, it's just boolean algebra > > > > i don't th

Re: [patch] fix babel call part of bug 3569

2007-05-07 Thread christian . ridderstrom
On Tue, 8 May 2007, [EMAIL PROTECTED] wrote: On Mon, 7 May 2007, Andre Poenitz wrote: > How is the syntax in C++ for this logic: > > if ( > (a == 1) && (b == 1) && > ((C == 1) || (C == -1)) > ) > > I mean how can the OR be included into an AND? The only or-less version I ca

Re: [patch] fix babel call part of bug 3569

2007-05-07 Thread Uwe Stöhr
>> if ( >>(a == 1) && (b == 1) && >>((C == "bla") || (C == "blub")) >> ) >> >>I mean how can the OR be included into an AND? > > it's not a c++ question, it's just boolean algebra > > i don't think it's possible Why that? In Delphi I use such contructs very often. The sy

Re: [patch] fix babel call part of bug 3569

2007-05-07 Thread christian . ridderstrom
On Mon, 7 May 2007, Andre Poenitz wrote: How is the syntax in C++ for this logic: if ( (a == 1) && (b == 1) && ((C == 1) || (C == -1)) ) I mean how can the OR be included into an AND? The only or-less version I can think of is if (a == 1 && b == 1 && C*C == 1) But that's a bit

Re: [patch] fix babel call part of bug 3569

2007-05-07 Thread Bernhard Roider
Andre Poenitz schrieb: On Mon, May 07, 2007 at 11:21:32PM +0200, Bernhard Roider wrote: I have a stupid C++ question: How is the syntax in C++ for this logic: it's not a c++ question, it's just boolean algebra Integers... True. I just looked at the logic. Bernhard

Re: [patch] fix babel call part of bug 3569

2007-05-07 Thread Andre Poenitz
On Mon, May 07, 2007 at 11:21:32PM +0200, Bernhard Roider wrote: > > > > >I have a stupid C++ question: > > > >How is the syntax in C++ for this logic: > > > > it's not a c++ question, it's just boolean algebra Integers... Andre'

Re: [patch] fix babel call part of bug 3569

2007-05-07 Thread Andre Poenitz
On Mon, May 07, 2007 at 11:07:59PM +0200, Uwe Stöhr wrote: > Attached is the patch that fixes the problem, that babel isn't called when > you are foreign languages in CJK and Armenian-documents. > > I think this is now the last remaining babel bug. > > Is my patch correct? It works here for all

Re: [patch] fix babel call part of bug 3569

2007-05-07 Thread Bernhard Roider
I have a stupid C++ question: How is the syntax in C++ for this logic: it's not a c++ question, it's just boolean algebra if ( (a == 1) && (b == 1) && ((C == 1) || (C == -1)) ) I mean how can the OR be included into an AND? i don't think it's possible Bernhard

[patch] fix babel call part of bug 3569

2007-05-07 Thread Uwe Stöhr
Attached is the patch that fixes the problem, that babel isn't called when you are foreign languages in CJK and Armenian-documents. I think this is now the last remaining babel bug. Is my patch correct? It works here for all my testcases but you have perhaps a better solution. --- I have a s