Article View: comp.lang.misc
Article #233Re: Types, arrays, generality, and notation (was: Fortran90 and Arrays)
From: Stephen P Spackman
Date: Thu, 16 Apr 1992 09:54
Date: Thu, 16 Apr 1992 09:54
24 lines
2109 bytes
2109 bytes
yIn article <ROCKWELL.92Apr15214305@socrates.umd.edu> rockwell@socrates.umd.edu (Raul Deluth Miller-Rockwell) writes: |Stephen P Spackman: | Obviously, I meant 32767 (that or I meant max). The point is that | the maximum for the representation and the maximum for the type are | different notions, and that in any case (no matter what IEEE may | tell you) "infinity" is not an integer and it's not a float. It's a | domain extension, and you shouldn't have to rely on them in order | to code up simple notions like min and max. | |So use the maximum for the type. | |If you wish to exclude certain representations, there will still be a |maximum element among the representations you allow. Not safe in the presence of conversions. And, unless your type was specified by the user choosing bounds of hir own, a dangerous confusion of the implementation with the object. Finally, how does this solution work with bignums? All in all, not an acceptable engineering alternative, IMHO. ---------------------------------------------------------------------- stephen p spackman Center for Information and Language Studies stephen@estragon.uchicago.edu University of Chicago ----------------------------------------------------------------------
Technical Details
Message-ID:
<STEPHEN.92Apr16045412@estragon.uchicago.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!tira!stephenReferences:
<ROCKWELL.92Mar21001252@socrates.umd.edu> <STEPHEN.92Apr11043808@estragon.uchicago.edu> <1992Apr13.194947.17250@newshost.lanl.gov> <STEPHEN.92Apr14171919@estragon.uchicago.edu> <ROCKWELL.92Apr15002308@socrates.umd.edu> <STEPHEN.92Apr15014148@estragonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!tira!stephen From: stephen@estragon.uchicago.edu (Stephen P Spackman) Newsgroups: comp.lang.misc Subject: Re: Types, arrays, generality, and notation (was: Fortran90 and Arrays) Message-ID: <STEPHEN.92Apr16045412@estragon.uchicago.edu> Date: 16 Apr 92 09:54:03 GMT References: <ROCKWELL.92Mar21001252@socrates.umd.edu> <STEPHEN.92Apr11043808@estragon.uchicago.edu> <1992Apr13.194947.17250@newshost.lanl.gov> <STEPHEN.92Apr14171919@estragon.uchicago.edu> <ROCKWELL.92Apr15002308@socrates.umd.edu> <STEPHEN.92Apr15014148@estragon Sender: news@uchinews.uchicago.edu (News System) Organization: University of Chicago CILS Lines: 24 In-Reply-To: rockwell@socrates.umd.edu's message of 16 Apr 92 02:43:05 GMT