Thread overview | |||||
---|---|---|---|---|---|
|
May 03, 2011 [Issue 5923] New: .ptr property is not const for const arrays | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5923 Summary: .ptr property is not const for const arrays Product: D Version: D1 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: mathias.baumann@sociomantic.com --- Comment #0 from Mathias Baumann <mathias.baumann@sociomantic.com> 2011-05-03 04:24:48 PDT --- Created an attachment (id=958) testcase see the attached testcase. the &var[0] syntax works while the var.ptr syntax fails. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 12, 2013 [Issue 5923] .ptr property is not const for const arrays | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mathias Baumann | http://d.puremagic.com/issues/show_bug.cgi?id=5923 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrej.mitrovich@gmail.com Resolution| |WORKSFORME --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-11 20:04:40 PST --- You'll have to change: const S test1[4] = [ S(1), S(2)]; to const S test1[2] = [ S(1), S(2)]; to avoid runtime errors (lengths don't match for array copy). But otherwise this seems to be fixed. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 12, 2013 [Issue 5923] .ptr property is not const for const arrays | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mathias Baumann | http://d.puremagic.com/issues/show_bug.cgi?id=5923 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-11 20:05:00 PST --- Dumb me, this is D1, not D2, sorry. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation