reddit discussion on article by bearophile

bearophile bearophileHUGS at
Thu Nov 17 00:33:10 PST 2011

Andrei Alexandrescu:

> This is actually a pretty awesome fail.

Derived from those thoughts, an idea for Phobos, a bitFlags function:

A desire:


import std.stdio;
enum : int { A, B }
void main() {
    writeln(B); // I'd like it to print "B" here.

I think this is related to:


More information about the Digitalmars-d mailing list