Re: casting
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Fri, 09 Jun 2006 23:45:28 -0400
Keith Thompson wrote:
CBFalconer <cbfalconer@xxxxxxxxx> writes:
[...]
Trying to stuff a value into a signed object that cannot hold that
value results in implementation defined behaviour. You could have
just set off that 3 tons of fertilizer they found in Canada. Only
stuffing into unsigned objects has a defined action.
On a conversion to a signed integer type, if the value cannot be
represented, "either the result is implementation-defined or an
implementation-defined signal is raised". There is no undefined
behavior.
Doesn't the phrase "implementation defined behaviour" mean just
that? To me, that includes signalling or peculiar result values.
--
Some informative links:
news:news.announce.newusers
http://www.geocities.com/nnqweb/
http://www.catb.org/~esr/faqs/smart-questions.html
http://www.caliburn.nl/topposting.html
http://www.netmeister.org/news/learn2quote.html
.
- Follow-Ups:
- Re: casting
- From: Keith Thompson
- Re: casting
- From: jaysome
- Re: casting
- References:
- casting
- From: Christian Christmann
- Re: casting
- From: CBFalconer
- Re: casting
- From: Keith Thompson
- casting
- Prev by Date: Re: Why the C committee doesn't provide an implementation when the standard is published?
- Next by Date: Re: Structure of functions
- Previous by thread: Re: casting
- Next by thread: Re: casting
- Index(es):
Relevant Pages
|