Beginner's question on enumerated types