Re: std.Algebraic alias this

2015-10-06 Thread Radu via Digitalmars-d-learn
On Tuesday, 6 October 2015 at 06:37:16 UTC, Nicholas Wilson wrote: On Monday, 5 October 2015 at 11:31:32 UTC, Radu wrote: There is a weird rule on how compiler treats alias this for the N and S types bellow. [...] Please file a bug report. Also do the errors change if you reverse the order

Re: std.Algebraic alias this

2015-10-05 Thread Radu via Digitalmars-d-learn
On Tuesday, 6 October 2015 at 06:37:16 UTC, Nicholas Wilson wrote: On Monday, 5 October 2015 at 11:31:32 UTC, Radu wrote: There is a weird rule on how compiler treats alias this for the N and S types bellow. [...] Please file a bug report. Also do the errors change if you reverse the order

Re: std.Algebraic alias this

2015-10-05 Thread Nicholas Wilson via Digitalmars-d-learn
On Monday, 5 October 2015 at 11:31:32 UTC, Radu wrote: There is a weird rule on how compiler treats alias this for the N and S types bellow. [...] Please file a bug report. Also do the errors change if you reverse the order in T i.e. alias T = Algebraic!(S,N); ?

std.Algebraic alias this

2015-10-05 Thread Radu via Digitalmars-d-learn
There is a weird rule on how compiler treats alias this for the N and S types bellow. As you can see, somehow S losses it's type and ends up a plain string withing the Algebraic type. I would expect that all types should be the treated the same, why a string alias will be different then a boo