CRITICALITY : NOT URGENT
Is a param comprises of real expressions with results known at compile
time likely to be supported at any time into the future.
For example I want the program to know the most accurate value
possible of say 2.0/3.0 to whatever precision is active
Only the first param defined below is legitimate;
inline proc twothirds(param x : real(64)) param return 2.0:real(64) / x;
proc run()
{
param try1 = 0.666666666666666666666666666666666666666666666:real(64);
param try2 = twothirds(3.0:real(64));
param try3 = 2.0:real(64) / 3.0:real(64);
// some other waffle
}
Thanks - Damian
Pacific Engineering Systems International, 277-279 Broadway, Glebe NSW 2037
Ph:+61-2-8571-0847 .. Fx:+61-2-9692-9623 | unsolicited email not wanted here
Views & opinions here are mine and not those of any past or present employer
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Chapel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-users