Re: batching gets and searching
- From: Dan Winship <danw helixcode com>
- To: Havoc Pennington <hp redhat com>
- Cc: Colm Smyth <Colm Smyth ireland sun com>, gconf-list gnome org
- Subject: Re: batching gets and searching
- Date: Fri, 08 Sep 2000 11:47:44 -0400
> In C enums simply are not distinct types from int, so there's no
> additional violation; in C++ the result of a bunch of enum values |'d
> together is not typesafe in the same sense void* isn't.
I'm pretty sure ANSI C doesn't guarantee that variables of enum type
can hold integer values that don't correspond to members of the
enumeration. (Not that you'll ever find a compiler that won't allow
this.)
-- Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]