<html><head></head><body class="ApplePlainTextBody" dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><blockquote type="cite">This is, however, kind of a hack IMHO that relies on the compiler behavior that isn't well documented.<br></blockquote><br>It's documented in "The Swift Programming Language", in the same paragraphs where the `enum Planet` example we've been working with comes from.<br><br>“When you’re working with enumerations that store integer or string raw values, you don’t have to explicitly assign a raw value for each case. When you don’t, Swift will automatically assign the values for you.<br><snip><br>“When strings are used for raw values, the implicit value for each case is the text of that case’s name.”<br><br>-- <br>Brent Royal-Gordon<br>Architechies<br><br></body></html>