On Tuesday, 29 October 2013 at 09:44:36 UTC, Tourist wrote:
On Tuesday, 29 October 2013 at 09:43:23 UTC, Andrea Fontana
wrote:
I was reading 2.064 changelog on website.
Check this:
template Tuple(T...) { alias Tuple = T; }
template isIntOrFloat(T)
{
static if (is(T == int) || is(T == float))
enum isIntOrFloat = true;
else
enum isIntOrFloat = true;
}
I guess the "else" branch should be " = false" rather than " =
true";
Why the changelog for 2.064 is even available on dlang.org?
I guess it's a good thing, it's available online. While looking
through it, I also noticed that there are new functions
'stripLeft/stripRight'. I believe it would be more consistent to
call those stripFront/stripBack.