[Issue 18422] String members and parameters cannot be mixed in, even during CTFE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 11 18:32:11 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18422

ag0aep6g at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ag0aep6g at gmail.com

--- Comment #1 from ag0aep6g at gmail.com ---
(In reply to Andrei Alexandrescu from comment #0)
> In this case the cure is simple - make Module a template parameterized on
> the module name/alias. But the matter gets a lot more problematic when
> trying to represent e.g. "all function declarations in this module".

If you have a better example, why not show it? How would you implement "all
function declarations in this module" with/without the proposed feature?

Also, this needs to be a full-blown DIP, no? The restriction that all functions
must be compilable for run time is in the spec and widely accepted (as far as
I'm aware). If you want to lift it, you'll have to go into much more detail
than you did here.

--


More information about the Digitalmars-d-bugs mailing list