[Issue 10506] Purity should not be checked in a mixin statement

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 30 05:25:05 PDT 2013


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



--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-06-30 05:25:04 PDT ---
(In reply to comment #1)
> That was the std.array.join issue. It uses std.array.Appender, but Appender had
> impure operation until very recent days.

Here's the thing though, aren't all functions when CTFE evaluated pure?

You can't save any state or read global state while in CTFE, so I'm thinking
that during a chain of CTFE calls (e.g. join -> appender -> newCapacity), it
isn't necessary to check for purity?

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