From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on ip-172-31-91-241.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=none autolearn=unavailable autolearn_force=no version=4.0.1 Path: nntp.eternal-september.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: In precision typing we trust Date: Thu, 28 Aug 2025 10:00:02 +0200 Organization: A noiseless patient Spider Message-ID: <108p2a1$16qn1$2@dont-email.me> References: <107uv9g$3019a$1@dont-email.me> <107v1ji$303of$1@dont-email.me> <336fbb5f-a279-ea8e-67fd-f62bb00d6a89@irrt.De> <107vfb9$34cpj$1@dont-email.me> <10855lq$gj8l$1@dont-email.me> <1088h1a$19635$1@dont-email.me> <1089p1i$1ig1d$1@dont-email.me> <108aq2p$1qo9o$1@dont-email.me> <108dh2l$2f5h3$1@dont-email.me> <108ej11$2mbr8$1@dont-email.me> <108g1fv$32gqg$3@dont-email.me> <108h6b7$3a75k$3@dont-email.me> <108ijfj$3lihe$4@dont-email.me> <108jqcg$3ti12$2@dont-email.me> <87cy8im3kc.fsf@nightsong.com> <108l2bt$81g3$1@dont-email.me> <108lidc$br9n$2@dont-email.me> <108mdp7$gv59$3@dont-email.me> <108o3dp$vok4$7@dont-email.me> <108o6ku$10c60$3@dont-email.me> <108o8dd$10pj9$5@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 28 Aug 2025 08:00:03 +0000 (UTC) Injection-Info: dont-email.me; posting-host="6f970729dc22bef6d204ec8c3c6ab955"; logging-data="1272545"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/hxSSUHKVZyqv66jxHwGCQpRVPGBuz1n0=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:fjVHJeYub5Tw40aBpvG57pVFFUE= Content-Language: en-US In-Reply-To: <108o8dd$10pj9$5@dont-email.me> Xref: feeder.eternal-september.org comp.lang.ada:66961 List-Id: On 2025-08-28 02:38, Lawrence D’Oliveiro wrote: > On Thu, 28 Aug 2025 02:07:58 +0200, Dmitry A. Kazakov wrote: > >> On 2025-08-28 01:12, Lawrence D’Oliveiro wrote: >>> >>> Python does not allow resume semantics for exceptions. Otherwise the >>> function would have continued executing, which it did not. >> >> It continued. The function returned Null_Object and flagged an active >> exception state. > > You are confusing the internal workings of the implementation with the > actual language semantics. What semantics? F is called. F is returned. Where in the code any semantics was stated? >> See >> >> https://docs.python.org/3/c-api/exceptions.html >> >> for how Python works. > > Think of that as the dumbed-down explanation, for those who can only think > in terms of conventional languages like C, C++ or Ada. If that’s all you > can handle ... well, you do you. There is nothing unconventional in command line interpreters, except for extremely ugly syntax, e.g. Python, Bash, Windows Cmd. But that seems to be a kind of convention, isn't it? (:-)) >>>> Hint: You cannot define the type semantics of a function in an untyped >>>> language. That is just what untyped means. >>> >>> Not sure why that’s relevant, >> >> It is, because typed means in particular definite types of subprogram >> arguments and results. > > Python arguments and results are always of a definite type. Can you name them in the example given? It seems that you confuse objects with formal arguments. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de