by Richard Heathfield <rjh@[EMAIL PROTECTED]
>
Apr 9, 2008 at 01:06 AM
DerekBaker said:
> It's impossible to return the whole enum, rather just one element of it?
Yes, it's impossible (short of populating, say, a vector with all the
possible values and then returning the vector). Enumerations are not
"collections" of values, but lists of possible values, so the term "the
whole enum" doesn't really make any sense. It's a bit like asking whether
it's possible to return all the possible values a char can have.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www.
+rjh@[EMAIL PROTECTED]
users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999