September 23, 2002 D » Re: enum inheritance | |||
|---|---|---|---|
| |||
...this? constants c = constants.pi; extended e = cast(extended) constants.pi; No. (some implicit conversion... | |||
September 22, 2002 D » enum inheritance | |||
|---|---|---|---|
| |||
...why not let it provide float values too?
enum constants : extended
{
pi = 3.1415926535897932384626433832795;
}
Sean
| |||
September 07, 2002 D » Specifying type of constants | |||
|---|---|---|---|
| |||
...precision) is important in many applications. Define pi otherwise and you lose 6 significant digits... | |||
August 20, 2002 D » Re: dmd 0.37 release - operator overloading (1/1) | |||
|---|---|---|---|
| |||
...QJ(/,`]V<@\NO6ER`X.@<'#@SHJ3_#*P<(KMSPKQ_PI M*ZR0^3.=JY#Y$YK`X... | |||
June 01, 2002 D » Re: Newbie | |||
|---|---|---|---|
| |||
...of referring to pi as 3.141592653589793 at every appearance, the variable PI can be... | |||
January 24, 2002 D » Re: Why create a DML? PI's are easier | |||
|---|---|---|---|
| |||
The idea of DML is a generalization of "Embedding D in HTML" as outlined at... | |||
January 24, 2002 D » Why create a DML? PI's are easier | |||
|---|---|---|---|
| |||
Ladies and gentlemen, I honestly find myself wondering why we would go to the trouble... | |||
August 25, 2001 D » Re: Default values for functions, and named parameters... | |||
|---|---|---|---|
| |||
...diamond draw(d:mybox p:there r:(PI/4)); I will say that I wouldn... | |||
August 18, 2001 D » Miscellaneous comments on D | |||
|---|---|---|---|
| |||
...float, char* foo ()
{
return 1, 3.1416, "pi";
}
which is preferable to
int foo (float... | |||
August 17, 2001 D » Re: Operator overloading. | |||
|---|---|---|---|
| |||
...that.pointer_to->something_else = z**(2*pi) / (x ^ 0xff); Let's move it all... | |||
Copyright © 1999-2021 by the D Language Foundation