A array bug?
Chris Nicholson-Sauls
ibisbasenji at gmail.com
Thu Feb 5 22:15:13 PST 2009
Stewart Gordon wrote:
> 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.
>
Just double-checked the spec, and yes, array ops are triggered by a
slice appearing as an lvalue. So, a different error message entirely is
warranted.
-- Chris Nicholson-Sauls
More information about the Digitalmars-d-learn
mailing list