pure format

Meta via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 4 11:19:17 PDT 2015


On Thursday, 4 June 2015 at 18:08:09 UTC, Ali Çehreli wrote:
http://www.digitalmars.com/d/archives/digitalmars/D/learn/std.conv.to_purity_68957.html
>
> > and if it try it's not a bug...
>
> Floating point operations share global state ("flags" or 
> "attributes") for rounding mode, exception and trap handling. 
> Perhaps that's why floating point format cannot be pure.
>
> Ali

That is not it (if it is, it's a bug), as D allows pure functions 
to set and check those flags.
http://dlang.org/function.html#pure-functions


More information about the Digitalmars-d mailing list