On 14/03/12 18:46, Boscop wrote:
On Wednesday, 14 March 2012 at 17:35:06 UTC, Don Clugston wrote:
In the last bit of code, why not use CTFE for valid(string s) instead
of templates?
bool valid(string s)
{
foreach(c; s)
{
if (c 'w' || c 'z') return false;
}
return true;
}
In fact you can use
Thanks for the suggestions, I updated the article with an
improved CTFE version at the end.
On 14.03.2012 18:57, Boscop wrote:
Hi everyone,
I wrote a blog post for people who know a bit of D and want to dig
deeper, it shows different approaches to get vector swizzling syntax in D:
http://boscop.tk/blog/?p=1
There is nothing revolutionary involved but it might still be useful
On 14.03.2012 19:03, Dmitry Olshansky wrote:
On 14.03.2012 18:57, Boscop wrote:
Hi everyone,
I wrote a blog post for people who know a bit of D and want to dig
deeper, it shows different approaches to get vector swizzling syntax
in D:
http://boscop.tk/blog/?p=1
There is nothing revolutionary
On Wed, Mar 14, 2012 at 03:57:02PM +0100, Boscop wrote:
Hi everyone,
I wrote a blog post for people who know a bit of D and want to dig
deeper, it shows different approaches to get vector swizzling syntax
in D:
http://boscop.tk/blog/?p=1
There is nothing revolutionary involved
On 14/03/12 15:57, Boscop wrote:
Hi everyone,
I wrote a blog post for people who know a bit of D and want to dig
deeper, it shows different approaches to get vector swizzling syntax in D:
http://boscop.tk/blog/?p=1
There is nothing revolutionary involved but it might still be useful
On Wednesday, 14 March 2012 at 17:35:06 UTC, Don Clugston wrote:
In the last bit of code, why not use CTFE for valid(string s)
instead of templates?
bool valid(string s)
{
foreach(c; s)
{
if (c 'w' || c 'z') return false;
}
return true;
}
In fact you can use CTFE for the