On Sunday, 13 April 2014 at 22:49:54 UTC, Andrei Alexandrescu
wrote:
On 4/12/14, 8:15 PM, deadalnix wrote:
On Saturday, 12 April 2014 at 19:43:30 UTC, Andrei Alexandrescu wrote:
Sorry, your speculations are mistaken. The pattern works well and
we've been using it repeatedly and with good results since C++
introduced "enum class".


Can you provide a sample code so we understand what you are talking about ? It do not seems to me that enum classes defeat Jonathan point,
but I may be wrong.

The UserID example is a good one. You need to cast a couple of times when doing I/O, then passing user IDs around is nice because no other integers can be passed instead.

Andrei

I understand the benefit of that, but how does that require
language support ?

Reply via email to