Re: e to the i pi




"osmium" <r124c4u102@xxxxxxxxxxx> wrote in message
news:52pa8oF1neoriU1@xxxxxxxxxxxxxxxxxxxxx
"Fred Kleinschmidt" writes:

Aren't M_PI and M_E defined in math.h?

Thankfully, no. Only in grotesque extensions to the language made by
certain vendors.

Definitions of constants have no proper place in a programming language,
it just leads to two sets of constants, a private set, for M_AVOGADRO and
the like, and the set that came with the compiler, M_PI. and friends.

And thus we should get rid of defined constants like INT_MAX, INT_MIN, etc.,
since they have no place in a programming language.
--
Fred L. Kleinschmidt


.



Relevant Pages

  • Re: e to the i pi
    ... Only in grotesque extensions to the language made by certain vendors. ... Definitions of constants have no proper place in a programming language, it just leads to two sets of constants, a private set, for M_AVOGADRO and the like, and the set that came with the compiler, M_PI. ...
    (comp.lang.c)
  • Re: making a success from being a brilliant bipolar
    ... grad school for my PhD to work for 2 years first. ... Every programming language I use ... This leads to a lot of jumping between programming languages. ... your own culture for the right woman. ...
    (comp.lang.lisp)
  • Re: Your first "linguistic" memory
    ... This also leads to ... and programming language) with, but I had a collegue, originally ... for real English. ...
    (sci.lang)