On 2011/1/6 Vincent Lefevre wrote: > On 2011-01-05 22:09:13 +0100, Denis Barbier wrote: >> > The French isgreater(3) man page says: >> > >> > L'opérateur normal de relation (comme <, « inférieur à ») échouera si >> > l'un des opérandes est le non nombre NaN. Ceci déclenche une exception. >> > Pour l'éviter, C99 définit ces macros. Elles garantissent de n'évaluer >> > leurs opérandes qu'une seule fois. Les opérandes peuvent être n'importe >> > quel type réel. >> > >> > This is incorrect, and it has been incorrectly translated from the >> > English version, which says: >> > >> > The normal relation operations (like <, "less than") will fail if one >> > of the operands is NaN. This will cause an exception. To avoid this, >> > C99 defines these macros. The macros are guaranteed to evaluate their >> > operands only once. The operands can be of any real floating-point >> > type. >> > >> > So, "type réel" should be replaced by something like "type flottant réel" >> > (I don't know the correct term in French). >> >> Thanks for your report. What do you think about this translation ? >> >> Les opérations de relation usuelles (comme <, « inférieur à ») échouent si >> l'un des opérandes vaut NaN (« Not a Number », ce qui signifie « pas >> un nombre »). >> Ceci déclenche une exception. Pour l'éviter, C99 définit ces macros. >> Elles garantissent de n'évaluer leurs opérandes qu'une seule fois. >> Les opérandes peuvent être de n'importe quel type flottant. > > No, "type flottant" is incorrect because complex numbers are also > floating types (and are forbidden here). C99 has the following > definitions: > > * There are three /real floating types/, designated as float, double, > and long double. > > * There are three /complex types/, designated as float t_Complex, > double _Complex, and long double _Complex. > > * The real floating and complex types are collectively called > the /floating types/. > > * The type char, the signed and unsigned integer types, and the > enumerated types are collectively called /integer types/. > > * The integer and real floating types are collectively called > /real types/. > > * Integer and floating types are collectively called /arithmetic types/.
Thanks Vincent for these clarifications. After more thinking I also agree that operand is misleading in this context. As "type flottant réel" seems to not be widely used, it is IMO better to be more explicit in French. Here is another try: Les opérations de relation usuelles (comme <, « inférieur à ») échouent si l'un des paramètres vaut NaN (« Not a Number », ce qui signifie « pas un nombre »), et déclenchent une exception. Pour l'éviter, C99 définit ces macros. Elles garantissent de n'évaluer leurs paramètres qu'une seule fois. Les paramètres peuvent être de n'importe quel type flottant réel (float, double ou long double). Denis -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org