A array bug?

Stewart Gordon smjg_1998 at yahoo.com
Thu Feb 5 16:49:02 PST 2009


Chris Nicholson-Sauls wrote:
<snip>
> Suggest: Array operation '<OP>' not implemented for type <T>[].
> 
> Where <OP> is here '+' and <T> is here char.

It doesn't quite work like that.  AIUI the only supported way of using 
array operations is assigning the result to an array slice, which this 
isn't.

> And possibly catch the particular case of char[] and suggest '~', 
> since it is probably the single most common mistake in this area.

Maybe....

Stewart.


More information about the Digitalmars-d-learn mailing list