reddit discussion on article by bearophile

bearophile bearophileHUGS at lycos.com
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:
http://d.puremagic.com/issues/show_bug.cgi?id=6946

A desire:
http://d.puremagic.com/issues/show_bug.cgi?id=6916

Example:

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:
http://d.puremagic.com/issues/show_bug.cgi?id=5004

Bye,
bearophile


More information about the Digitalmars-d mailing list