🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #229

Re: Types, arrays, generality, and notation (was: Fortran90 and Arrays)

#229
From: Raul Deluth Miller-Rockwell
Date: Thu, 16 Apr 1992 03:04
39 lines
1897 bytes
Jim Giles:
   Well, you quoted my name on someone else's remarks.  In fact, I was
   disagreeing with the quote attributed to me above.

Yes.  My apologies.

   As for maximum elements of a type, what has that got to do with the
   issues raised here?

The maximum element of a type is the identity element for the MIN
operation. 

   The correct return of `min' applied to an empty is _not_ the
   maximum possible value of the type!

Who said anything about applying MIN to an empty?  The discussion was
about applying MIN REDUCTION to an empty.

   That implies that the array wasn't empty but it's minimum element
   had that value.

Every implementation of reduction that I've seen returns the identity
element for the specified operation when applied to an empty array.

   NAN (not a number) might be an appropriate return.

Are you saying that
   MIN(NAN, 5)
is 5?

   The user should have control over this explicitly though.  The user
   should decide what should be done if the array argument to a reduce
   is empty.

If that's the case, the user can do so... [obligatory description of
turing completeness elided].

-- 
Raul Deluth Miller-Rockwell                   <rockwell@socrates.umd.edu>
Technical Details
Message-ID: <ROCKWELL.92Apr15220419@socrates.umd.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!socrates!socrates!rockwell
References: <ROCKWELL.92Mar21001252@socrates.umd.edu> <ROCKWELL.92Apr15002308@socrates.umd.edu> <1992Apr15.202813.12326@newshost.lanl.gov>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!socrates!socrates!rockwell
From: rockwell@socrates.umd.edu (Raul Deluth Miller-Rockwell)
Subject: Re: Types, arrays, generality, and notation (was: Fortran90 and Arrays)
In-Reply-To: jlg@cochiti.lanl.gov's message of Wed, 15 Apr 1992 20:28:13 GMT
Message-ID: <ROCKWELL.92Apr15220419@socrates.umd.edu>
Sender: rockwell@socrates.umd.edu (Raul Deluth Miller-Rockwell)
Organization: Traveller
References: <ROCKWELL.92Mar21001252@socrates.umd.edu>
 <ROCKWELL.92Apr15002308@socrates.umd.edu>
 <1992Apr15.202813.12326@newshost.lanl.gov>
Date: Thu, 16 Apr 1992 03:04:19 GMT
Lines: 39