From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tristan Plumb <9p-st@imu.li> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Message-Id: <2576c2.1a8ca4f7.1333.mx@tumtum.plumbweb.net> Date: Sat, 6 Feb 2010 10:38:27 -0500 User-Agent: mx-alpha Subject: [9fans] NaN, +Inf, and -Inf, constants? Topicbox-Message-UUID: ce4eadf2-ead5-11e9-9d60-3106f5b1d025 I'm porting PROJ4.3.3 (the cleanest version of proj I could find), and it's a little ugly. One thing leading to another, I am currently centralizing constants, and found that enums can hold doubles (which is quite nice), but I have no way of defining NaN or Inf as a constant, is there such a way? Or is there a way to evaluate constant functions at compile time (eep)? Or I could just use #define (much safer than the above). enjoy, tristan -- All original matter is hereby placed immediately under the public domain.