Proposal: fixing the 'pure' floating point problem.

Walter Bright newshound1 at digitalmars.com
Sun Mar 15 11:34:59 PDT 2009


Let's say we have A which is in a floatingpoint module, B which is in a 
non-floatingpoint module and C which is marked pure in a 
non-floatingpoint module:

-------------------------
module A(floatingpoint);
void a()
{
     set mode;
     b();
     restore mode;
}
------------------------
module B;
void b()
{
     c();
}
-------------------------
module C;
pure real c()
{
     ...
}
------------------------


Where is the mode for c() getting set back to the default?



More information about the Digitalmars-d mailing list