Deutsch English Français Italiano |
<v2am6k$2s12h$2@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: James Kuyper <jameskuyper@alumni.caltech.edu> Newsgroups: comp.theory,comp.lang.c Subject: Re: Every D(D) simulated by H presents non-halting behavior to H ### Date: Sat, 18 May 2024 12:49:24 -0400 Organization: A noiseless patient Spider Lines: 27 Message-ID: <v2am6k$2s12h$2@dont-email.me> References: <v18e32$1vbql$1@dont-email.me> <v1avuv$2lks2$1@dont-email.me> <v1b7gl$2ndka$1@dont-email.me> <v1cla9$34iis$1@dont-email.me> <v1d2mi$9f72$11@i2pn2.org> <v1di1h$3b2m5$1@dont-email.me> <v1dtdv$3dqg4$1@dont-email.me> <v1du2i$3dt7u$1@dont-email.me> <v1fetd$3s7jo$1@dont-email.me> <v1ft42$3vdau$2@dont-email.me> <-5Gdnf-nQvstC6b7nZ2dnZfqnPadnZ2d@brightview.co.uk> <v1gid8$4ilc$1@dont-email.me> <v1h9eu$9faf$1@dont-email.me> <v1iqli$nsva$1@dont-email.me> <v1ln3c$vfh$1@news.muc.de> <v1s6e6$397iq$2@dont-email.me> <v1slmi$3cjtp$1@dont-email.me> <v1t8tt$3gu9t$3@dont-email.me> <v1vc8j$3jmr$1@dont-email.me> <v1vsru$7eqc$1@dont-email.me> <v21r4i$otc2$2@dont-email.me> <v22k4b$umr4$1@dont-email.me> <v24oah$1h4u3$1@dont-email.me> <v256fc$1kais$1@dont-email.me> <v27d05$25ga0$1@dont-email.me> <v2838r$29rd7$1@dont-email.me> <v2a8th$2ps09$1@dont-email.me> <v2ahqc$2qvr9$1@dont-email.me> <v2aicl$1ct7o$6@i2pn2.org> <v2ajd4$2ro09$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Date: Sat, 18 May 2024 18:49:25 +0200 (CEST) Injection-Info: dont-email.me; posting-host="40d43f14ee16d13b66084a22dfa1da56"; logging-data="3015761"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wy6odGjpcChaUQ4be2rXPGIeS3DOT1QE=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:WH3NhuIaSpNOp6E7k2JKrJPCvVY= Content-Language: en-US In-Reply-To: <v2ajd4$2ro09$1@dont-email.me> Bytes: 3155 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.