Deutsch English Français Italiano |
<vt5o57$inuo$3@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!eternal-september.org!.POSTED!not-for-mail From: David Brown <david.brown@hesbynett.no> Newsgroups: comp.lang.c Subject: Re: do { quit; } else { } Date: Wed, 9 Apr 2025 14:11:19 +0200 Organization: A noiseless patient Spider Lines: 37 Message-ID: <vt5o57$inuo$3@dont-email.me> References: <vspbjh$8dvd$1@dont-email.me> <8634enhcui.fsf@linuxsc.com> <vsph6b$ce6m$5@dont-email.me> <86ldsdfocs.fsf@linuxsc.com> <20250406161323.00005809@yahoo.com> <86ecy5fjin.fsf@linuxsc.com> <20250406190321.000001dc@yahoo.com> <86plhodtsw.fsf@linuxsc.com> <20250407210248.00006457@yahoo.com> <vt15lq$bjs0$3@dont-email.me> <vt2lp6$1qtjd$1@dont-email.me> <vt31m5$2513i$1@dont-email.me> <vt3d4g$2djqe$1@dont-email.me> <vt3iqh$2ka99$1@dont-email.me> <vt5fed$ccri$1@dont-email.me> <20250409131124.00006e26@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 09 Apr 2025 14:11:19 +0200 (CEST) Injection-Info: dont-email.me; posting-host="39048323a720df50869558e92437b3ec"; logging-data="614360"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HW12IYhQrqNNfeNSBsNC68FHHpLP/ONk=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cancel-Lock: sha1:An0QZSd59gWy7FbwBRMs1IeO5SE= In-Reply-To: <20250409131124.00006e26@yahoo.com> Content-Language: en-GB Bytes: 3448 On 09/04/2025 12:11, Michael S wrote: > On Wed, 9 Apr 2025 11:42:36 +0200 > David Brown <david.brown@hesbynett.no> wrote: > >> >> This applies to all languages. For example, in Python you do not >> have separate "interface" and "implementation" files - everything is >> in one ".py" file. If I have a Python module that says "import >> my_py_lib", how does Python know where to find "my_py_lib.py" ? How >> does it know which copy of "my_py_lib.py" to use from the dozen that >> I have on my computer? The answer is it uses some default rules for >> the language, some default rules for the implementation, some >> configuration settings, some flags, some run-time information >> (equivalent to compile-time information in compiled languages). The >> exact details are different, but the principle is the same for C and >> for any other language that can handle more than one file. >> > > It is not quite the same for all languages. The degree in which it is > standardizes vs left to implementation differs. In some languages it is > fully standardized. > I think, in case of Ada it was standardized in APSE. But then, real > world mostly accepted a language part of Ada standard and mostly > ignored APSE part. > > As I said, details vary, and some languages may specify more details than others. There are also differences in the relationship between a "module" of some sort that a unit might refer to, and the file or files that comprise that module. But the principle is that when one unit refers to another, the tools will have some way of figuring out which unit you are referring to, distinguishing it from other units or files on the same host system even if the filenames are the same. C does not differ in principle here from other languages. Bart seems to think C is somehow especially bad or complicated - he is wrong in that.