Deutsch English Français Italiano |
<uungdk$v8gp$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!2.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.lang.c Subject: Re: remark on defining size of basic types Date: Fri, 5 Apr 2024 02:25:22 +0200 Organization: A noiseless patient Spider Lines: 32 Message-ID: <uungdk$v8gp$1@dont-email.me> References: <uukp2q$2v3$1@i2pn2.org> <uukrfp$7l0f$2@dont-email.me> <uul0q6$c4i$1@i2pn2.org> <uul461$d88r$1@dont-email.me> <uum354$1l27$1@i2pn2.org> <uum95f$lr8o$1@dont-email.me> <uundl9$ugsb$2@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Date: Fri, 05 Apr 2024 00:25:24 +0200 (CEST) Injection-Info: dont-email.me; posting-host="c6ae584e28bb1589ec681cad79171e32"; logging-data="1024537"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19QK1oa1McPsQ31qiUGHM7W" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:gmf6dteFfW3PNbhLDnbZUIodzLw= In-Reply-To: <uundl9$ugsb$2@dont-email.me> X-Enigmail-Draft-Status: N1110 Bytes: 2425 On 05.04.2024 01:38, Lawrence D'Oliveiro wrote: > On Thu, 4 Apr 2024 15:15:26 +0200, Janis Papanagnou wrote: > >> Sometimes it's useful to have an unbounded or parameterized integral >> data type available ... > > Interestingly, Fortran (of all things) has that. Was that the e.g. '*8' syntax? - Did it allow arbitrary lengths? I thought you could select only from few supported ranges (like, the C scalar types, but declared as *1, *2, *4, *8, and that's it). (I have only faint memories about Fortran, did not use it for long.) In Pascal you could define subranges, but I think also only on a fixed integral base type, and Ada seems to have a similar concept. But GNU Awk supports multiple precision arithmetic, optionally. (No explicit data type, though.) I'm reluctant[*] to say that I think Cobol[**] as well has such a feature. And I think it had no size restriction on a machine word as the other languages mentioned above. - Is that correct? (That language feature might have got out of fashion long ago?) Janis [*] Some folks here might feel offended by mentioning Cobol again. [**] A language I never programmed myself in.