May 04, 2015 Re: CTFE & template predicates | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rikki Cattermole | On 2015-05-04 03:52:21 +0000, Rikki Cattermole said: > Have you looked at my book? https://leanpub.com/ctfe I bought it. Will it be updated? It's very generic with respect the concept and I'm missing code examples for all the user-cases. Especially the generator part is IMO very interesting. -- Robert M. Münch http://www.saphirion.com smarter | better | faster |
May 05, 2015 Re: CTFE & template predicates | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert M. Münch | On 5/05/2015 6:24 a.m., Robert M. Münch wrote:
> On 2015-05-04 03:52:21 +0000, Rikki Cattermole said:
>
>> Have you looked at my book? https://leanpub.com/ctfe
>
> I bought it. Will it be updated?
>
> It's very generic with respect the concept and I'm missing code examples
> for all the user-cases. Especially the generator part is IMO very
> interesting.
It's due for an update.
Basically I just need to be told what people want. Otherwise I'll be doing it blind!
|
May 06, 2015 Re: CTFE & template predicates | ||||
---|---|---|---|---|
| ||||
Posted in reply to anonymous | > template startsNotWith(string s,char c){
> enum startsNotWith = s.length == 0 || s[0] != c;
> }
Better still:
enum startsNotWith(string s, char c) = { return s.length == 0 || s[0] != c; }
|
Copyright © 1999-2021 by the D Language Foundation