Weed Wrote:
I just would like that D could substitute C++ completely in all
applications...
D can do it. Phobos and Tango - can't.
Weed wrote:
I just would like that D could substitute C++ completely in all
applications...
D2 can easily, but it seems there is not so much interest if measured by
what library code is available. D1 can do too, but if you want to use raii
for memory management D2 has better facilities.
In
Chris Nicholson-Sauls Wrote:
Stewart Gordon wrote:
Ellery Newcomer wrote:
taqya wrote:
snip
char[] a = a.dup;
char[] b = b.dup;
writefln(a + b); //Error: Array operations not implemented
snip
If so, the error informs you why you can't do that.
snip
Except that
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
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,