Re: pll: who uses _Bool



"CBFalconer" <cbfalconer@xxxxxxxxx> a écrit dans le message de news:
47266B57.200F8F1D@xxxxxxxxxxxx
Keith Thompson wrote:

... snip ...

The question was:

Now, what is the type of true and false, when using:

$ cat /usr/lib/gcc/i486-linux-gnu/4.1.2/include/stdbool.h
[...]
#define true 1
#define false 0

I fail to see how the hypothetical usage of the # operator is
relevant to the question. The types of true, false, and INT_MAX
are all the same: int.

My point is that we don't have a typed identifier at all. We have
created another representation for the digit 1 (or for 0). Yes,
the unadorned use of such digits can generate an int type constant,
however we are not limited to such unadorned use.

The characters 'true' are simply another glyph for the digit '1'.

Not for the digit 1, for the one-digit token ``1''
Anyway, your point is ridiculous: any identifier can be transmogrified into
something else with macro based token pasting.

int x;
long x1;

Q: what is the type of x?
A: int of course.
CBF: not if I do this: GLUE(x,1) with an appropriate definition of GLUE.

--
Chqrlie.


.



Relevant Pages

  • Re: Proper use of scanf
    ... have published some routines which operate directly on the input ... Barring EOF it will NOT be a digit. ... This forbids overflow, ... int readxwd ...
    (comp.lang.c)
  • Re: A portability poser: adding two unsigned shorts
    ... The problem occurs if the width of int is exactly 1 larger than the ... instead I have a type 'digit', which is a typedef for some unsigned ... except that this still has the same portability problem as above. ... digit) for any unsigned integer type 'digit'. ...
    (comp.lang.c)
  • Re: String Encryption Help
    ... private int CreateSecureRandomInt() ... RNGCryptoServiceProvider random = new ... to - a single digit in the range 0 to 9. ... My test code is below for reference. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: String parsing program
    ... there can be only white space till a digit is reached and once a digit ... typedef int; ... int scan (const char* s) ...
    (comp.lang.c)
  • Re: help with a function
    ... int() can't convert non-string with explicit base ... attempting to specify that a number object (already represented inside ... That only makes sense with a string of digit characters, where Python ...
    (comp.lang.python)