P
Phil Carmody
Andrew Poelstra said:I'm not sure if you meant this, but your code, although written to
behave very differently than Nick's
It's not written to behave in any particular way at all, as it's a
contraint violation.
, will probably give the same
value on a lot of systems (since both printf and f return int, and
many systems use a single register for integer return values).
So in regards to Nick's comment about deserving to be shot, his
code could result in a very awful bug indeed! - one that only
appears after the code has been ported, perhaps many years later,
and even then might still exhibit no visible symptoms.
Nope, it should appear immediately upon seeing an inability to
compile without the obligatory diagnostic.
Phil