Void variables



Hello

I would like to define a variable of void type. However I get compiler
errors:

void x; // error: variable or field ‘x’ declared void

Infact there is a typedef and I want to allow the defined type to be,
void. However, the error is the same.

Thankyou
.



Relevant Pages

  • Re: New language feature in Delphi: Static instantiation of classes
    ... Pretty funny compiler messages from Apple's MPW C ... "Can't cast a void type to type void (because the ANSI spec. ... "This label is the target of a goto from outside of the block ...
    (borland.public.delphi.non-technical)
  • Re: Void variables
    ... I would like to define a variable of void type. ... Infact there is a typedef and I want to allow the defined type to be, ...
    (comp.lang.c)
  • Re: Void variables
    ... I would like to define a variable of void type. ... However I get compiler ... Infact there is a typedef and I want to allow the defined type to be, ...
    (comp.lang.c)
  • Re: Void variables
    ... I would like to define a variable of void type. ... However I get compiler ... Infact there is a typedef and I want to allow the defined type to be, ...
    (comp.lang.c)
  • Re: Void variables
    ... I would like to define a variable of void type. ... However I get compiler ... Infact there is a typedef and I want to allow the defined type to be, ...
    (comp.lang.c)