Thread overview | |||||
---|---|---|---|---|---|
|
August 19, 2006 [Issue 295] New: Property call followed by sliceAssign not working for custom opSliceAssign | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=295 Summary: Property call followed by sliceAssign not working for custom opSliceAssign Product: D Version: 0.164 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P3 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: oskar.linde@gmail.com struct A { void opSliceAssign(int x) {} A d() { return *this; } } void main() { A a; a.d[] = 5; // ERROR: A cannot be sliced with [] a.d()[] = 5; // Works } -- |
September 03, 2006 [Issue 295] Property call followed by sliceAssign not working for custom opSliceAssign | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=295 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from bugzilla@digitalmars.com 2006-09-02 19:44 ------- Fixed 0.166 -- |
October 06, 2006 Re: [Issue 295] New: Property call followed by sliceAssign not working for custom opSliceAssign | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail Attachments: | d-bugmail@puremagic.com schrieb am 2006-08-19: > http://d.puremagic.com/issues/show_bug.cgi?id=295 > struct A { > void opSliceAssign(int x) {} > A d() { return *this; } > } > > void main() { > A a; > a.d[] = 5; // ERROR: A cannot be sliced with [] > a.d()[] = 5; // Works > } Added to DStress as http://dstress.kuehne.cn/run/o/opSliceAssign_02_A.d http://dstress.kuehne.cn/run/o/opSliceAssign_02_B.d http://dstress.kuehne.cn/run/o/opSliceAssign_02_C.d http://dstress.kuehne.cn/run/o/opSliceAssign_02_D.d Thomas |
Copyright © 1999-2021 by the D Language Foundation