[Issue 7438] Functions from std.conv should be pure
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 31 09:18:02 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=7438
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |razvan.nitu1305 at gmail.com
Resolution|--- |WONTFIX
--- Comment #10 from RazvanN <razvan.nitu1305 at gmail.com> ---
(In reply to bearophile_hugs from comment #3)
> (In reply to comment #2)
> > Should we close ?
>
> I agree with Jonathan M Davis that maybe asking for them to be always pure
> is a bit too much (this is debatable. Maybe it's a good thing still).
>
> But I think we can't close this bug report before this little program, that
> shows a very basic usage of to!(), compiles with no errors or warnings:
>
>
> import std.conv: to;
> void main() pure {
> string r = to!string(to!real("2.5"));
> }
The above example compiles now (even if we mark main as @safe) so as per
Jonathan's comments I will close this as WONTFIX.
--
More information about the Digitalmars-d-bugs
mailing list