Re: Every D(D) simulated by H presents non-halting behavior to H ###

Liste des GroupesRevenir à l c 
Sujet : Re: Every D(D) simulated by H presents non-halting behavior to H ###
De : mikko.levanto (at) *nospam* iki.fi (Mikko)
Groupes : comp.lang.c
Date : 19. May 2024, 12:23:21
Autres entêtes
Organisation : -
Message-ID : <v2cjup$3b6ib$1@dont-email.me>
References : 1 2 3 4 5
User-Agent : Unison/2.2
On 2024-05-18 16:49:24 +0000, James Kuyper said:

On 5/18/24 12:01, Fred. Zwarts wrote:
...
On 2024-05-15 15:24:57 +0000, olcott said:
...
00 int H(ptr x, ptr x);
...
Another issue seems to be that in the declaration of H:
int H(ptr x, ptr x);
both parameters have the same name.
(Olcott is famous for using the same name for different objects.)
  The standard requires that different entities designated by the same
identifier must either have different scopes or different namespaces.
(6.2.1p2). In a function declaration that is not part of a function
definition, the parameter names have all function prototype scope
(6.2.1p4) and belong to the ordinary identifier name space (6.2.3p1).
This is not labelled as a constraint or syntax error, but the standard
fails to say what should be done with code that doesn't follow this
rule, so the behavior is undefined "by omission of any explicit
definition of the behavior".
 In a function definition, the parameter names have block scope and
belong to the ordinary identifier name space, and therefore must not
only avoid duplicating each other, but must also avoid duplicating any
identifier declared in the outermost block of the function.
Thank you. That is what I wanted to know.
Which version of the standard do the references refer to? I don't expect
these things vary from one version to the next but section and paragraph
numbers might.
--
Mikko

Date Sujet#  Auteur
18 May 24 * Re: Every D(D) simulated by H presents non-halting behavior to H ###89Mikko
18 May 24 +* Re: Every D(D) simulated by H presents non-halting behavior to H ###71olcott
18 May 24 i+- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Richard Damon
19 May 24 i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###69DFS
19 May 24 i +* Re: Every D(D) simulated by H presents non-halting behavior to H ###8immibis
20 May 24 i i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###7Chris M. Thomasson
20 May 24 i i `* Re: Every D(D) simulated by H presents non-halting behavior to H ###6Keith Thompson
20 May 24 i i  +* Re: Every D(D) simulated by H presents non-halting behavior to H ###3Chris M. Thomasson
20 May 24 i i  i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###2Keith Thompson
21 May 24 i i  i `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Chris M. Thomasson
20 May 24 i i  +- Re: Every D(D) simulated by H presents non-halting behavior to H ###1olcott
20 May 24 i i  `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Kenny McCormack
19 May 24 i +* Re: Every D(D) simulated by H presents non-halting behavior to H ###58olcott
19 May 24 i i+- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Chris M. Thomasson
19 May 24 i i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###56Richard Damon
19 May 24 i i `* Re: Every D(D) simulated by H presents non-halting behavior to H ###55Chris M. Thomasson
20 May 24 i i  `* Re: Every D(D) simulated by H presents non-halting behavior to H ###54immibis
20 May 24 i i   `* Re: Every D(D) simulated by H presents non-halting behavior to H ###53David Brown
20 May 24 i i    +* Re: Every D(D) simulated by H presents non-halting behavior to H ###4Kenny McCormack
20 May 24 i i    i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###3Alan Mackenzie
20 May 24 i i    i `* Topicality: Who really cares? (Was: Every D(D) simulated by H presents non-halting behavior to H ###)2Kenny McCormack
21 May 24 i i    i  `- Re: Topicality: Who really cares? (Was: Every D(D) simulated by H presents non-halting behavior to H ###)1David Brown
20 May 24 i i    +* Re: Every D(D) simulated by H presents non-halting behavior to H ###16Chris M. Thomasson
21 May 24 i i    i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###15David Brown
21 May 24 i i    i `* Re: Every D(D) simulated by H presents non-halting behavior to H ###14James Kuyper
21 May 24 i i    i  `* Re: Every D(D) simulated by H presents non-halting behavior to H ###13David Brown
21 May 24 i i    i   +- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Chris M. Thomasson
21 May 24 i i    i   +* Re: Every D(D) simulated by H presents non-halting behavior to H ###10Keith Thompson
22 May 24 i i    i   i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###9David Brown
22 May 24 i i    i   i `* Re: Every D(D) simulated by H presents non-halting behavior to H ###8olcott
23 May 24 i i    i   i  `* Re: Every D(D) simulated by H presents non-halting behavior to H ###7Mikko
23 May 24 i i    i   i   `* Re: Every D(D) simulated by H presents non-halting behavior to H ###6olcott
24 May 24 i i    i   i    +- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Chris M. Thomasson
24 May 24 i i    i   i    `* Re: Every D(D) simulated by H presents non-halting behavior to H ###4Mikko
24 May 24 i i    i   i     `* Re: Every D(D) simulated by H presents non-halting behavior to H ###3olcott
25 May 24 i i    i   i      `* Re: Every D(D) simulated by H presents non-halting behavior to H ###2Mikko
25 May 24 i i    i   i       `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1olcott
24 May 24 i i    i   `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Chris M. Thomasson
21 May 24 i i    `* Re: Every D(D) simulated by H presents non-halting behavior to H ###32immibis
21 May 24 i i     +* Lying meets the standard of losing defamation cases2olcott
21 May 24 i i     i`- Re: Lying meets the standard of losing defamation cases1Richard Damon
21 May 24 i i     +* Lying meets the standard of losing defamation cases3olcott
21 May 24 i i     i`* Re: Lying meets the standard of losing defamation cases2Richard Damon
21 May 24 i i     i `- Re: Lying meets the standard of losing defamation cases1Mikko
21 May 24 i i     +* Re: Every D(D) simulated by H presents non-halting behavior to H ###3Keith Thompson
21 May 24 i i     i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###2Kenny McCormack
21 May 24 i i     i `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1immibis
21 May 24 i i     +* Re: Every D(D) simulated by H presents non-halting behavior to H ###13David Brown
21 May 24 i i     i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###12James Kuyper
21 May 24 i i     i `* Re: Every D(D) simulated by H presents non-halting behavior to H ###11immibis
21 May 24 i i     i  +- Thought control??? (Was: Every D(D) simulated by H presents non-halting behavior to H ###)1Kenny McCormack
22 May 24 i i     i  +* Re: Every D(D) simulated by H presents non-halting behavior to H ###5Richard Damon
22 May 24 i i     i  i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###4Keith Thompson
22 May 24 i i     i  i `* Policy dispute (Was: Every D(D) simulated by H presents non-halting behavior to H ###)3Kenny McCormack
22 May 24 i i     i  i  `* Re: Policy dispute (Was: Every D(D) simulated by H presents non-halting behavior to H ###)2immibis
22 May 24 i i     i  i   `- Re: Policy dispute (Was: Every D(D) simulated by H presents non-halting behavior to H ###)1Kenny McCormack
22 May 24 i i     i  `* Re: Every D(D) simulated by H presents non-halting behavior to H ###4James Kuyper
22 May 24 i i     i   +* Re: Every D(D) simulated by H presents non-halting behavior to H ###2Kenny McCormack
22 May 24 i i     i   i`- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Kaz Kylheku
22 May 24 i i     i   `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1David Brown
21 May 24 i i     `* Re: Every D(D) simulated by H presents non-halting behavior to H ###10Chris M. Thomasson
21 May 24 i i      +* Subway (Was: Every D(D) simulated by H presents non-halting behavior to H ###)2Kenny McCormack
21 May 24 i i      i`- Re: Subway (Was: Every D(D) simulated by H presents non-halting behavior to H ###)1Chris M. Thomasson
21 May 24 i i      `* Re: Every D(D) simulated by H presents non-halting behavior to H ###7Keith Thompson
21 May 24 i i       +* Re: Every D(D) simulated by H presents non-halting behavior to H ###3Chris M. Thomasson
21 May 24 i i       i+- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Chris M. Thomasson
21 May 24 i i       i`- Welcome! (Was: Every D(D) simulated by H presents non-halting behavior to H ###)1Kenny McCormack
22 May 24 i i       `* Re: Every D(D) simulated by H presents non-halting behavior to H ###3immibis
24 May 24 i i        `* Re: Every D(D) simulated by H presents non-halting behavior to H ###2James Kuyper
24 May 24 i i         `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Chris M. Thomasson
19 May 24 i `* Re: Every D(D) simulated by H presents non-halting behavior to H ###2Chris M. Thomasson
19 May 24 i  `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Jeff Barnett
18 May 24 `* Re: Every D(D) simulated by H presents non-halting behavior to H ###17James Kuyper
18 May 24  +* Re: Every D(D) simulated by H presents non-halting behavior to H ###15Richard Damon
18 May 24  i+* Re: Every D(D) simulated by H presents non-halting behavior to H ###7Fred. Zwarts
18 May 24  ii+- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Richard Damon
18 May 24  ii+- Re: Every D(D) simulated by H presents non-halting behavior to H ###1olcott
18 May 24  ii`* Re: Every D(D) simulated by H presents non-halting behavior to H ###4James Kuyper
18 May 24  ii +- Re: Every D(D) simulated by H presents non-halting behavior to H ###1olcott
19 May 24  ii `* Re: Every D(D) simulated by H presents non-halting behavior to H ###2Mikko
19 May 24  ii  `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1James Kuyper
18 May 24  i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###7James Kuyper
18 May 24  i +* Re: Every D(D) simulated by H presents non-halting behavior to H ###5Richard Damon
18 May 24  i i`* Re: Every D(D) simulated by H presents non-halting behavior to H ###4James Kuyper
18 May 24  i i `* Re: Every D(D) simulated by H presents non-halting behavior to H ###3Keith Thompson
18 May 24  i i  +- D correctly simulated by H cannot possibly reach its own line 061olcott
19 May 24  i i  `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1Mikko
18 May 24  i `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1olcott
27 May 24  `- Re: Every D(D) simulated by H presents non-halting behavior to H ###1olcott

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal