const(int) cannot be sent as int message

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Mar 31 09:37:13 PDT 2016


On Thursday, 31 March 2016 at 13:47:25 UTC, Steven Schveighoffer 
wrote:
> Bug, but probably of the enhancement variety I think (I don't 
> think this is a small project). Receive should canonicalize the 
> input and requested receive type. That is, 
> receiveOnly!(const(int)) should really call receiveOnly!int, 
> and send!(const(int)) should really call send!int.
>
> Generous usage of Unqual should be done here.
>
> -Steve

Doesn't receive use Algebraic under the hood? I know that 
Algebraic has various issues with const and immutable types that 
I run into every once and awhile.


More information about the Digitalmars-d-learn mailing list