D - bug? array concatenation and properties
- "Carlos Santander B." <carlos8294 msn.com> Jan 28 2004
- Manfred Nowak <svv1999 hotmail.com> Jan 28 2004
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
Jan 28 2004
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.
Jan 28 2004








Manfred Nowak <svv1999 hotmail.com>