[Issue 7310] strongly pure function results should implicitly cast to mutable, shared, and inout
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 18 11:55:28 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7310
timon.gehr at gmx.ch changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|pure function results |strongly pure function
|should implicitly cast to |results should implicitly
|mutable |cast to mutable, shared,
| |and inout
--- Comment #1 from timon.gehr at gmx.ch 2012-01-18 11:55:27 PST ---
On second thought, this should be the case for all type qualifiers.
The following code should compile too:
inout(int)[] foo(inout int)pure{return new int[1];}
shared(int)[] foo()pure{return new int[1];}
int[] bar()pure{return new int[1];}
inout(int)[] bar(inout int){inout r = bar(); return r;}
void main(){shared(int)[] a = bar();}
--
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