OONumerics User :

From: Meng Xiangrui (mxr_at_[hidden])
Date: 2005-12-13 09:19:44


Hi,

        If I have declared a function

        double f(double);

        And I want to store the result into a new variable

        double p = f(2.0);

        But the compiler knows that f() will return a double type, so why not use

        define p = f(2.0); // Of course, "define" is just my word

        Is this achievable?
        

-- 
Best Regards,
     Meng Xiangrui
.:..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:.
 :
 : Department of Scientific & Engineering Computing,
 : School of Mathematical Sciences,
 : Peking University, Beijing,
 : P.R.China, 100871
 :
 : E-mail  : mxr_at_[hidden]
 : Webpage : http://dsec.pku.edu.cn/~mengxr
 :
.:..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:.