Thread overview | ||||||
---|---|---|---|---|---|---|
|
April 12, 2006 Error: static if conditional cannot be at global scope | ||||
---|---|---|---|---|
| ||||
This is an unfixed DDOC bug: /** */ struct AtoiT(T) { static if (!is (T == char) && !is (T == wchar)) pragma (msg, "Template type must be char or wchar"); } dmd -D "Error: static if conditional cannot be at global scope" |
April 12, 2006 Re: Error: static if conditional cannot be at global scope | ||||
---|---|---|---|---|
| ||||
Posted in reply to kris | kris wrote: > This is an unfixed DDOC bug: > > > /** > > */ > struct AtoiT(T) > { > static if (!is (T == char) && !is (T == wchar)) > pragma (msg, "Template type must be char or wchar"); > } > > > dmd -D > > "Error: static if conditional cannot be at global scope" Reported a while back: http://d.puremagic.com/bugzilla/show_bug.cgi?id=23 I'm currently using a -version=DDoc flag during documentation generation to produce a hacked version that DDoc will accept. Not at all ideal, but it works :-p Sean |
April 12, 2006 Re: Error: static if conditional cannot be at global scope | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | Sean Kelly wrote:
> kris wrote:
>> This is an unfixed DDOC bug:
>>
>>
>> /**
>>
>> */
>> struct AtoiT(T)
>> {
>> static if (!is (T == char) && !is (T == wchar))
>> pragma (msg, "Template type must be char or wchar");
>> }
>>
>>
>> dmd -D
>>
>> "Error: static if conditional cannot be at global scope"
>
> Reported a while back:
>
> http://d.puremagic.com/bugzilla/show_bug.cgi?id=23
>
> I'm currently using a -version=DDoc flag during documentation generation to produce a hacked version that DDoc will accept. Not at all ideal, but it works :-p
By the way, I also get bad HTML output from DDoc on a module or two (std.thread in Ares is one) and have been post-processing the file by hand. But I've yet to take the time to produce a minimal repro.
Sean
|
April 12, 2006 Re: Error: static if conditional cannot be at global scope | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | Sean Kelly wrote:
> kris wrote:
>
>> This is an unfixed DDOC bug:
>>
>>
>> /**
>>
>> */
>> struct AtoiT(T)
>> {
>> static if (!is (T == char) && !is (T == wchar))
>> pragma (msg, "Template type must be char or wchar");
>> }
>>
>>
>> dmd -D
>>
>> "Error: static if conditional cannot be at global scope"
>
>
> Reported a while back:
>
> http://d.puremagic.com/bugzilla/show_bug.cgi?id=23
>
> I'm currently using a -version=DDoc flag during documentation generation to produce a hacked version that DDoc will accept. Not at all ideal, but it works :-p
>
>
> Sean
Thanks, Sean. Good idea with the -version
|
Copyright © 1999-2021 by the D Language Foundation