[Issue 8185] Pure functions and pointers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 4 12:12:42 PDT 2012


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



--- Comment #54 from klickverbot <code at klickverbot.at> 2012-06-04 12:14:40 PDT ---
(In reply to comment #52)
> This is a bug, both should be optimized equally:
> 
> void foo(immutable int * _param) pure
> {
>    immutable(int)* param = _param; // legal
>    ... // same code as if you had written void foo(immutable(int)* param)
> }

Yep, both should be recognized PUREstrong in DMD – if not, please open a new
bug report for that.

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