[Issue 15862] allocating storage in pure functions should not result in caching return values of them

2016-10-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15862

Andrei Alexandrescu  changed:

   What|Removed |Added

 CC||and...@erdani.com

--- Comment #8 from Andrei Alexandrescu  ---
Hm, I liked the previous title better because "allocating storage" is not
defined at language level (could come from malloc, specialized allocators etc)
whereas "mutable indirections" are part of the language.

--


[Issue 15862] allocating storage in pure functions should not result in caching return values of them

2016-10-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15862

Walter Bright  changed:

   What|Removed |Added

Summary|dmd thinks functions are|allocating storage in pure
   |strongly pure despite   |functions should not result
   |mutable indirections in the |in caching return values of
   |return type |them

--