digitalmars.D.bugs - [Issue 7438] New: Functions from std.conv should be pure
- d-bugmail puremagic.com Feb 04 2012
- d-bugmail puremagic.com Apr 19 2012
- d-bugmail puremagic.com Apr 19 2012
- d-bugmail puremagic.com Apr 19 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7438 Summary: Functions from std.conv should be pure Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: trivial Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: SyntaxColoring gmail.com --- Comment #0 from SyntaxColoring gmail.com 2012-02-04 12:55:56 PST --- The conversion functions in std.conv always yield the same results for the same input, so they should be marked as pure. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 04 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7438 SomeDude <lovelydear mailmetrash.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lovelydear mailmetrash.com --- Comment #2 from SomeDude <lovelydear mailmetrash.com> 2012-04-19 08:46:04 PDT --- Should we close ? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 19 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7438 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs eml.cc --- Comment #3 from bearophile_hugs eml.cc 2012-04-19 15:02:53 PDT --- (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")); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 19 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7438 --- Comment #4 from Jonathan M Davis <jmdavisProg gmx.com> 2012-04-19 15:11:15 PDT --- I'd be very tempted to argue that that should be a separate bug. There's a big difference between std.conv.to should always be pure for everything and std.conv.to should be pure when converting to strings. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 19 2012









d-bugmail puremagic.com 