Deutsch English Français Italiano |
<v6ngq6$29e0c$2@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.lang.c Subject: Re: question about nullptr Date: Thu, 11 Jul 2024 02:42:14 -0000 (UTC) Organization: A noiseless patient Spider Lines: 20 Message-ID: <v6ngq6$29e0c$2@dont-email.me> References: <v6bavg$3pu5i$1@dont-email.me> <20240706054641.175@kylheku.com> <v6bfi1$3qn4u$1@dont-email.me> <l9ciO.7$cr5e.2@fx05.iad> <877cdyuq0f.fsf@bsb.me.uk> <2ckiO.19403$7Ej.4487@fx46.iad> <87plrpt4du.fsf@bsb.me.uk> <9bCiO.7108$sXW9.3805@fx41.iad> <877cdwu9s1.fsf@nosuchdomain.example.com> <v6if96$18hur$1@dont-email.me> <v6ifg7$18p16$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 11 Jul 2024 04:42:15 +0200 (CEST) Injection-Info: dont-email.me; posting-host="ead23d2d8cf5f779654345cfcdaaae64"; logging-data="2406412"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/yTwFmAAjkGEbLsRGWobob" User-Agent: Pan/0.158 (Avdiivka; ) Cancel-Lock: sha1:xKzlgTQ+ET9MjZHO3ON8N4/nlSA= Bytes: 1807 On Mon, 8 Jul 2024 21:49:10 -0700, Andrey Tarasevich wrote: > ... although, one the second thought, one can probably start a Holy War > about what a proper type-agnostic declaration of a `double` variable > should look like > > double d = 0; > > or > > auto d = 0.0; How about integer, parameter :: useprec = kind(0.0d0) real(kind = useprec) :: altitude, next_altitude, next_velocity, fuel_rate, elapsed Not quite full generics, but useful nonetheless. (From a program I posted on comp.lang.fortran a few weeks ago.)