Assigning int x = 'abc' ;
<p>I was doing a code review and I saw assignment of single quoted strings to enum values:</p>

<pre>
enum
{
  Option_1 = 'a',
  Option_2 = 'b'
} ;
</pre>

<p>While this makes for slightly more readable code (though the enum's meaning should be pretty much in the name of the num), it looks silly to me.</p>

<p>I didn't know you COULD do that and after studying it, I can see that all that happens is the binary value of the "characters" you're using gets thrown into an int.</p>

<p>Does anyone else do this in practice?  Or is this a bad practice?</p>
