* [Edbrowse-dev] Bool
@ 2015-08-27 22:04 Karl Dahlke
2015-08-27 22:42 ` Chris Brannon
0 siblings, 1 reply; 3+ messages in thread
From: Karl Dahlke @ 2015-08-27 22:04 UTC (permalink / raw)
To: Edbrowse-dev
It's sheer dumb luck that tidy5 uses Bool, with a capital B,
and yes and no instead of true and false,
thus there is no collision with edbrowse source.
The lack of an internal bool type is perhaps
the worst omiission of the original C language.
Karl Dahlke
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Edbrowse-dev] Bool
2015-08-27 22:04 [Edbrowse-dev] Bool Karl Dahlke
@ 2015-08-27 22:42 ` Chris Brannon
2015-08-28 4:21 ` Kevin Carhart
0 siblings, 1 reply; 3+ messages in thread
From: Chris Brannon @ 2015-08-27 22:42 UTC (permalink / raw)
To: Edbrowse-dev
Karl Dahlke <eklhad@comcast.net> writes:
> The lack of an internal bool type is perhaps
> the worst omiission of the original C language.
C99 has one. Quoting from Wikipedia [1]:
Begin quote:
Both C99 and C++ have a {boolean type} bool with constants true and false,
but they behave differently. In C++,
bool is a {built-in type} and a {reserved keyword}.
In C99, a new keyword, _Bool, is introduced as the new boolean type.
In many aspects, it behaves much like an unsigned int,
but conversions from other integer types or pointers always constrained to 0 and 1.
Other than for other unsigned types,
and as one would expect for a boolean type,
such a conversion is 0 if and only if the expression in question evaluates to 0
and it is 1 in all other cases. The header stdbool.h provides macros bool,
true and false that are defined as _Bool, 1 and 0, respectively.
End quote.
[1] https://en.wikipedia.org/wiki/Compatibility_of_C_and_C%2B%2B
Yea, and the standards didst proliferate,
sowing great confusion amongst the developers that dwelt upon the earth
in those days.
-- Chris
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Edbrowse-dev] Bool
2015-08-27 22:42 ` Chris Brannon
@ 2015-08-28 4:21 ` Kevin Carhart
0 siblings, 0 replies; 3+ messages in thread
From: Kevin Carhart @ 2015-08-28 4:21 UTC (permalink / raw)
To: Chris Brannon; +Cc: Edbrowse-dev
> Yea, and the standards didst proliferate,
> sowing great confusion amongst the developers that dwelt upon the earth
> in those days.
Heh heh!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-08-28 4:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-27 22:04 [Edbrowse-dev] Bool Karl Dahlke
2015-08-27 22:42 ` Chris Brannon
2015-08-28 4:21 ` Kevin Carhart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).