D - bug? array concatenation and properties
- Carlos Santander B. (14/14) Jan 28 2004 This code:
- Manfred Nowak (6/8) Jan 28 2004 RTFM:
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