Re: Amazon used lisp & C exclusively? (clc,cll)
- From: Richard Heathfield <invalid@xxxxxxxxxxxxxxx>
- Date: Fri, 14 Jul 2006 22:24:59 +0000
goose said:
Richard Heathfield wrote:
goose said:
<snip>
Anyway, C&V from my copy of n869, 6.3.2.3 (Pointers):
"[#5] An integer may be converted to any pointer type. |
Except as previously specified, the result is
implementation-defined, might not be properly aligned, and
might not point to an entity of the referenced type"
Yes, the result of the conversion is implementation-defined. The result
of dereferencing the resulting pointer, however, is undefined. (But it
can be useful nevertheless, as hitherto acknowledged.)
I hate to be bothersome, but I don't suppose you have
C&V for that?
If a ``shall'' or ``shall not'' requirement that appears outside of
a constraint is violated, the behavior is undefined. Undefined
behavior is otherwise indicated in this Standard by the words
``undefined behavior'' or by the omission of any explicit definition
of behavior. There is no difference in emphasis among these three;
they all describe ``behavior that is undefined.''
I claim that the Standard omits any explicit definition of behaviour, and
therefore the behaviour is undefined. If you can show that I'm wrong, feel
free.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.
- Follow-Ups:
- Re: Amazon used lisp & C exclusively? (clc,cll)
- From: Keith Thompson
- Re: Amazon used lisp & C exclusively? (clc,cll)
- References:
- Re: Amazon used lisp & C exclusively? (clc,cll)
- From: goose
- Re: Amazon used lisp & C exclusively? (clc,cll)
- From: Richard Heathfield
- Re: Amazon used lisp & C exclusively? (clc,cll)
- From: goose
- Re: Amazon used lisp & C exclusively? (clc,cll)
- From: Richard Heathfield
- Re: Amazon used lisp & C exclusively? (clc,cll)
- From: goose
- Re: Amazon used lisp & C exclusively? (clc,cll)
- Prev by Date: Read System Clock in Windows
- Next by Date: Re: Read System Clock in Windows
- Previous by thread: Re: Amazon used lisp & C exclusively? (clc,cll)
- Next by thread: Re: Amazon used lisp & C exclusively? (clc,cll)
- Index(es):
Relevant Pages
|