Hi Adam,
Thanks for your explanation.
On Wednesday, 25 May 2016 at 12:15:17 UTC, Adam D. Ruppe wrote:
On Wednesday, 25 May 2016 at 07:45:32 UTC, Jorge Lima wrote:
I can understand that array1 is not expanded to its value
representation in the first call, but why is then when passed
as an argu
On Wednesday, 25 May 2016 at 07:45:32 UTC, Jorge Lima wrote:
I can understand that array1 is not expanded to its value
representation in the first call, but why is then when passed
as an argument to the Constructor of the literal argument in
the second call? Am I missing something obvious?
It
Can someone explain me why in the following code the alias
parameter expands differently for first and second Instantiation?
module main;
import std.stdio;
import std.conv;
struct Cascade {
this(int a, immutable(Cascade)[] b)
{
f1 = a;
f2 = b;
}
this(int a)
{