January 29, 2004 bug? array concatenation and properties | ||||
---|---|---|---|---|
| ||||
This code: struct A { char [] member; char [] property () { return member; } void property (char [] value) { member = value; } } int main() { A a; a.property = "hello "; a.property ~= "world!"; // here } produces: "Can only concatenate arrays". ----------------------- Carlos Santander Bernal |
January 29, 2004 Re: bug? array concatenation and properties | ||||
---|---|---|---|---|
| ||||
Posted in reply to Carlos Santander B. | Carlos Santander B. wrote:
[...]
> a.property ~= "world!"; // here
> produces: "Can only concatenate arrays".
RTFM:
| Note: Properties currently cannot be the lvalue of an op=, ++, or
| -- operator.
So long.
|
Copyright © 1999-2021 by the D Language Foundation