Article on code features in C++ by Scott Meyers + sidebar on D implementation by Bartosz Milewski

Hoenir mrmocool at gmx.de
Wed Sep 24 17:23:15 PDT 2008


Bill Baxter schrieb:
> On Thu, Sep 25, 2008 at 7:31 AM, Hoenir <mrmocool at gmx.de> wrote:
>> Bill Baxter schrieb:
>>> you might want to also mention that you can debug such strings at
>>> *compile time* too using something like:
>>>
>>> pragma(msg, "FEATURE CODE:\n" ~ declareAllFeatures (["Tested",
>>> "Portable"]));
>>>
>> Doesn't work for me. It expects a string literal.
> 
> Then your implementation of declareAllFeatures is maybe not CTFE-able.
> 
Oh I'm sorry, I should have mentioned I didn't try that particular code.
But the lua bindings available at dsource use some mixins, so the 
function returning the string for the mixin must be executable at 
compile time.


More information about the Digitalmars-d-announce mailing list