Strange Compile Error when concatenating arrays

Jeroen Bollen jbinero at gmail.com
Wed Apr 9 12:39:12 PDT 2014


On Wednesday, 9 April 2014 at 19:35:49 UTC, Jeroen Bollen wrote:
> When I concatenate arrays like this, I get a strange compile 
> error:
>
> Error: incompatible types for ((cast(int)a) ~ (cast(int)b)): 
> 'int' and 'int'
>
> Code:
>
> public ubyte[] toArray(ubyte a, ubyte b, ubyte c) {
> 	return a ~ b ~ c;
> }

Oh derp I already figured it out. It still is a strange error 
message though.


More information about the Digitalmars-d mailing list