[Issue 6906] Cannot assign value into associative array if contains opAssign
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 7 23:07:52 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6906
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug at yahoo.com.au
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2011-11-07 23:07:16 PST ---
I don't think this is a bug. I think the behaviour is intuitive.
ss["hello"] = s; looks like an assignment, and it currently behaves like one.
This code doesn't compile, either:
S[2] ss;
S s;
ss[0] = s;
As you've defined it, S cannot participate in any assignment of any kind. You
can't even write:
S s;
S t;
t = s;
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list