https://issues.dlang.org/show_bug.cgi?id=6946
Iain Buclaw changed:
What|Removed |Added
Priority|P2 |P4
--
https://issues.dlang.org/show_bug.cgi?id=6946
Andrei Alexandrescu changed:
What|Removed |Added
Keywords||bootcamp
https://issues.dlang.org/show_bug.cgi?id=6946
--- Comment #12 from Nick Treleaven ntrel-pub...@yahoo.co.uk ---
(In reply to bearophile_hugs from comment #11)
(In reply to comment #10)
mixin BitFlags!q{A, B, C, D} MyFlags;
A better reason for this syntax is that is gives a name for ddoc to use
Actually, if we would already be doing partial tokenization, then I
would suspect it wouldn't be that hard to add support for extracting
documentation and putting them in the generated code for the mixin.
Also, to keep with standard D style, where the name of the type comes
before it's definition,
https://d.puremagic.com/issues/show_bug.cgi?id=6946
--- Comment #9 from Nick Treleaven ntrel-pub...@yahoo.co.uk 2014-04-03
07:43:21 PDT ---
(In reply to comment #8)
Is the name MyFlags not useful (as shown in the syntax you quote)?
It's fine, I just thought it might be good to take advantage
https://d.puremagic.com/issues/show_bug.cgi?id=6946
--- Comment #10 from bearophile_h...@eml.cc 2014-04-03 09:07:50 PDT ---
(In reply to comment #9)
although having mixin assignment syntax would make this
clearer. Nice idea BTW.
The point of giving it a name in some way (with a string) is
https://d.puremagic.com/issues/show_bug.cgi?id=6946
--- Comment #11 from bearophile_h...@eml.cc 2014-04-03 09:49:38 PDT ---
(In reply to comment #10)
The cleanness is because I like to have identifiers highlighted in the same
way
rather than have some as strings, so I would prefer to read
https://d.puremagic.com/issues/show_bug.cgi?id=6946
Nick Treleaven ntrel-pub...@yahoo.co.uk changed:
What|Removed |Added
CC|
https://d.puremagic.com/issues/show_bug.cgi?id=6946
--- Comment #8 from bearophile_h...@eml.cc 2014-04-02 10:19:23 PDT ---
(In reply to comment #7)
A note about syntax:
mixin(bitFlags!size_t(MyFlags, A B C D))
Wrapping enum code in a mixin template could allow:
mixin
http://d.puremagic.com/issues/show_bug.cgi?id=6946
--- Comment #6 from bearophile_h...@eml.cc 2012-09-26 07:28:19 PDT ---
See also Issue 8727
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
http://d.puremagic.com/issues/show_bug.cgi?id=6946
Denis Shelomovskij verylonglogin@gmail.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=6946
Marco Leise marco.le...@gmx.de changed:
What|Removed |Added
CC||marco.le...@gmx.de
http://d.puremagic.com/issues/show_bug.cgi?id=6946
yebblies yebbl...@gmail.com changed:
What|Removed |Added
CC||yebbl...@gmail.com
---
http://d.puremagic.com/issues/show_bug.cgi?id=6946
--- Comment #1 from bearophile_h...@eml.cc 2011-11-14 15:21:15 PST ---
For the C# [Flags] attribute see:
http://msdn.microsoft.com/en-us/library/cc138362.aspx
http://msdn.microsoft.com/en-us/library/system.flagsattribute.aspx
In D enums
http://d.puremagic.com/issues/show_bug.cgi?id=6946
Alex R�nne Petersen xtzgzo...@gmail.com changed:
What|Removed |Added
CC|
15 matches
Mail list logo