9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] NaN, +Inf, and -Inf, constants?
@ 2010-02-06 15:38 Tristan Plumb
  2010-02-06 15:57 ` erik quanstrom
  2010-02-07  0:06 ` Russ Cox
  0 siblings, 2 replies; 15+ messages in thread
From: Tristan Plumb @ 2010-02-06 15:38 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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.



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2010-02-08 18:48 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-06 15:38 [9fans] NaN, +Inf, and -Inf, constants? Tristan Plumb
2010-02-06 15:57 ` erik quanstrom
2010-02-06 17:14   ` Tristan Plumb
2010-02-07 16:12     ` erik quanstrom
2010-02-07  0:06 ` Russ Cox
2010-02-07 10:46   ` Charles Forsyth
2010-02-07 11:05     ` Charles Forsyth
2010-02-07 20:01     ` Russ Cox
2010-02-07 20:31       ` erik quanstrom
2010-02-07 21:33       ` Charles Forsyth
2010-02-07 22:19         ` Lyndon Nerenberg (VE6BBM/VE7TFX)
2010-02-07 22:37           ` erik quanstrom
2010-02-08 16:39             ` Lyndon Nerenberg (VE6BBM/VE7TFX)
2010-02-08 18:48               ` Russ Cox
2010-02-07 23:16           ` Bakul Shah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).