conv text and pure

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Oct 23 14:44:42 PDT 2013


On 10/23/13, H. S. Teoh <hsteoh at quickfur.ath.cx> wrote:
> Furthermore, the above function is a template function, which means the
> compiler will perform attribute inference on it. So provided textImpl
> has no impure operations, it should be inferred as pure, unless args has
> some impure methods in it that's being used by textImpl.

Yeah that may just be the issue.

The reason I mentioned 2.064 is because std.conv.to and
std.string.format are now pure, and text() likely uses these in one
way or another.


More information about the Digitalmars-d-learn mailing list