digitalmars.D.bugs - [Issue 295] New: Property call followed by sliceAssign not working for custom opSliceAssign
- d-bugmail puremagic.com (23/23) Aug 19 2006 http://d.puremagic.com/issues/show_bug.cgi?id=295
- d-bugmail puremagic.com (9/9) Sep 02 2006 http://d.puremagic.com/issues/show_bug.cgi?id=295
- Thomas Kuehne (14/24) Oct 06 2006 -----BEGIN PGP SIGNED MESSAGE-----
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
}
--
Aug 19 2006
http://d.puremagic.com/issues/show_bug.cgi?id=295
bugzilla digitalmars.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Fixed 0.166
--
Sep 02 2006
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 d-bugmail puremagic.com schrieb am 2006-08-19:http://d.puremagic.com/issues/show_bug.cgi?id=295struct 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 -----BEGIN PGP SIGNATURE----- iD8DBQFFJguqLK5blCcjpWoRAs4KAJ9hxNpnVCx8HbKrSGVPtW0jmcw03wCfXHXb y8H9CXAB5f0esvenP6VhoCU= =q0F7 -----END PGP SIGNATURE-----
Oct 06 2006









d-bugmail puremagic.com 