🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #194

Re: min, max, and ANSI

#194
From: Norman Diamond
Date: Fri, 10 Apr 1992 08:29
24 lines
1913 bytes
In article <1992Apr9.165859.18578@wam.umd.edu> krc@wam.umd.edu (Kevin R. Coombes) writes:
>I have a question about the ANSI C header stdlib.h. A certain compiler that
>shall for the moment remain nameless includes macros for min(a,b) and
>max(a,b) in <stdlib.h>.

1.  If you're asking about the ANSI C header stdlib.h, it does not intrude
on the application's namespace, not even names like min and max.

2.  If you're asking about the draft ANSI C++ standard (for which you
cross-posted your question), you'll have to hope for an answer from
someone else.

3.  If you're asking about a certain nameless compiler, then maybe:
(a)  You might have invoked it in a non-conforming mode, and/or your program
might have done something to request implementation extensions, and in either
case the standard becomes irrelevant.  Please note that non-conforming modes
are often defaults, and often you have to use options for conforming modes; or
(b)  The vendor might not have asserted conformance in the first place; or
(c)  If you did everything as directed to invoke in a conforming mode, then
you should demand a refund from the vendor.  [Personal opinion only.]
--
Norman Diamond       diamond@jit081.enet.dec.com
If this were the company's opinion, I wouldn't be allowed to post it.
"Yeah -- bad wiring.  That was probably it.  Very bad."
Technical Details
Message-ID: <1992Apr10.082956.26388@jrd.dec.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!decuac!pa.dec.com!jrdzzz.jrd.dec.com!jit345.bad.jit.dec.com!diamond
References: <1992Apr9.165859.18578@wam.umd.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c,comp.std.c++
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!decuac!pa.dec.com!jrdzzz.jrd.dec.com!jit345.bad.jit.dec.com!diamond
From: diamond@jit345.bad.jit.dec.com (Norman Diamond)
Subject: Re: min, max, and ANSI
Message-ID: <1992Apr10.082956.26388@jrd.dec.com>
Sender: usenet@jrd.dec.com (USENET ACCOUNT)
Nntp-Posting-Host: jit345
Reply-To: diamond@jit.dec.com (Norman Diamond)
Organization: Digital Equipment Corporation Japan , Tokyo
References: <1992Apr9.165859.18578@wam.umd.edu>
Date: Fri, 10 Apr 92 08:29:56 GMT
Lines: 24