Article on code features in C++ by Scott Meyers + sidebar on D implementation by Bartosz Milewski
Bill Baxter
wbaxter at gmail.com
Wed Sep 24 17:53:07 PDT 2008
On Thu, Sep 25, 2008 at 9:23 AM, Hoenir <mrmocool at gmx.de> wrote:
> 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.
In that case you did something else wrong. pragma(msg, ...) works.
We can't help you if you don't give us any information.
--bb
More information about the Digitalmars-d-announce
mailing list