On Wednesday, 11 September 2019 at 02:09:42 UTC, Stefanos
Baziotis wrote:
I have branched to an old PR (4 months ago) and the problem
doesn't exist.
For clarification, the problem doesn't exist _in that_ branch. On
my current
new branch, I still haven't been able to solve it.
On Wednesday, 11 September 2019 at 03:45:23 UTC, Zekereth wrote:
Yes, thank you very much. Your tutorials are a great help! Keep
it up! Thanks again.
Oakey dokey.
On Wednesday, 11 September 2019 at 09:05:47 UTC, Ali Çehreli
wrote:
Like this?
Yet an other template! That's great! :-)
On 09/11/2019 01:35 AM, berni wrote:
I'd like to write a template, that takes a different default value
depending on the type of a variable.
Like this?
import std.stdio;
void main()
{
double a = 1e-8;
double b = 1e-10;
float c = 1e-4;
float d = 1e-6;
assert(!test(a));
assert(test
On Wednesday, 11 September 2019 at 08:35:02 UTC, berni wrote:
I'd like to write a template, that takes a different default
value depending on the type of a variable. I tried this, but it
doesn't work:
void main()
{
double a = 1e-8;
double b = 1e-10;
float c = 1e-4;
float d = 1e-6;
I'd like to write a template, that takes a different default
value depending on the type of a variable. I tried this, but it
doesn't work:
void main()
{
double a = 1e-8;
double b = 1e-10;
float c = 1e-4;
float d = 1e-6;
assert(!test(a));
assert(test(b));
assert(!test(c));