[Swan-dev] explicitly assigned enum values

D. Hugh Redelmeier hugh at mimosa.com
Wed Jul 16 04:32:22 EEST 2014


| From: Paul Wouters <paul at nohats.ca>

| That I don't like. Some code uses existence of an enum name as proof
| some value is vaild, so made up values, even if 0, are a bad idea.

That's only if there is a corresponding enry in the enum_names for the
enum.  I would leave that name out.  So the result would be just as
you want.


More information about the Swan-dev mailing list