[Issue 6946] Compile-time flags generator

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6946 Iain Buclaw changed: What|Removed |Added Priority|P2 |P4 --

[Issue 6946] Compile-time flags generator

2016-10-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6946 Andrei Alexandrescu changed: What|Removed |Added Keywords||bootcamp

[Issue 6946] Compile-time flags generator

2014-04-11 Thread d-bugmail
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

Re: [Issue 6946] Compile-time flags generator

2014-04-11 Thread Orvid King
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,

[Issue 6946] Compile-time flags generator

2014-04-03 Thread d-bugmail
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

[Issue 6946] Compile-time flags generator

2014-04-03 Thread d-bugmail
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

[Issue 6946] Compile-time flags generator

2014-04-03 Thread d-bugmail
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

[Issue 6946] Compile-time flags generator

2014-04-02 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=6946 Nick Treleaven ntrel-pub...@yahoo.co.uk changed: What|Removed |Added CC|

[Issue 6946] Compile-time flags generator

2014-04-02 Thread d-bugmail
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

[Issue 6946] Compile-time flags generator

2012-09-26 Thread d-bugmail
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: ---

[Issue 6946] Compile-time flags generator

2012-09-25 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6946 Denis Shelomovskij verylonglogin@gmail.com changed: What|Removed |Added CC|

[Issue 6946] Compile-time flags generator

2012-08-15 Thread d-bugmail
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

[Issue 6946] Compile-time flags generator

2011-12-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6946 yebblies yebbl...@gmail.com changed: What|Removed |Added CC||yebbl...@gmail.com ---

[Issue 6946] Compile-time flags generator

2011-11-14 Thread d-bugmail
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

[Issue 6946] Compile-time flags generator

2011-11-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6946 Alex R�nne Petersen xtzgzo...@gmail.com changed: What|Removed |Added CC|