> From: André Warnier [mailto:a...@ice-sa.com] 
> Subject: Re: [OT] Setting HTTP response headers caching for 1 year doesn't 
> work

> What kind of stupid compiler is this, which requires me to say
> double d = 1.0 / 2;
> to get a correct result ?

One that abides by the C (or Java) standards.

> And even then, if the expression was
> double d = 1.0 / 3;
> I would probably *still* not get a result with the precision 
> afforded by the double d, and would have to write
> double d = 1.0D / 3;
> to get it right, right ?

Nope - the standards require that otherwise unannotated floating point 
operations must be done in double precision.  (What, you want consistency?)

> I maintain what I said : a programming language which produces a 
> wrong result, without even a warning, for an expression as simple as
> Long a = (1000 * 60 * 60 * 24 * 365)
> should be consigned to iPods and stuff, not used for serious things
> like Tomcat.

Careful, there's a lot more mathematically-sensitive code in an iPod, iPhone, 
or iPad than in Tomcat.  (Think about video and audio decoding.)  However, I 
suspect that Objective-C still follows the C standards for expressions.

> (No wonder after that, that lunar probes go CFIT.)

Nah, it's that damn metric system (think Gimli Glider).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

Reply via email to