[Issue 7310] pure function results should implicitly cast to mutable, shared, and inout

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 18 15:32:55 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7310


Stewart Gordon <smjg at iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com


--- Comment #3 from Stewart Gordon <smjg at iname.com> 2012-01-18 15:32:54 PST ---
I'm not sure about this.  If a function is pure, then multiple calls with the
same arguments (or even that return the same value) can potentially be
optimised to all use the same copy of the data.  Implicit cast to mutable would
mess this up, unless we define the implicit conversion to .dup the result.

-- 
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