Talk:Unit type

From Wikipedia, the free encyclopedia

Isn't the statment about the void type being the unit type not true? If unit is a mathmatical type that allows only one value, then void would not meet this qualification because, as is stated in the page, it contains no values. --NotQuiteEXPComplete 03:03, 9 August 2006 (UTC)

In the page it is stated that C++ and others don't provide any way to access the value of void, rather than void doesn't have any value at all :) 150.254.31.52 13:11, 11 December 2006 (UTC)


There are no () in Clean. ~~ —Preceding unsigned comment added by 91.124.209.143 (talk) 06:46, 3 December 2007 (UTC)

[edit] void in C is a bottom type.

The C standard (ISO/IEC 9899:1999) states:

6.2.5 Types

[...]

19 The void type comprises an empty set of values; it is an incomplete type that cannot be completed.

So it is clearly a bottom type, not a unit type. I don't know how to fix this, as it is also about C++, C# and Java which I don't know. --Army1987 (talk) 10:01, 13 March 2008 (UTC)