May 04, 2015
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
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
> 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; }
1 2
Next ›   Last »