Article View: comp.windows.ms.programmer
Article #2307Re: min/max in bc++
From: william.clark
Date: Thu, 25 Apr 1991 16:13
Date: Thu, 25 Apr 1991 16:13
15 lines
1203 bytes
1203 bytes
From article <ONEEL.91Apr25100347@heawk1.rosserv.gsfc.nasa.gov>, by oneel@heawk1.rosserv.gsfc.nasa.gov ( Bruce Oneel ): > Got a question on windows.h, bc++, and c++ mode. > > I was entering the sysmet? examples from the petzold book and I > noticed that min and max weren't defined. That's funny, they're in > help... Well, went spelunking through windows.h and noticed that they > are in there, but if you are compiling c++ mode they are ignored. > > Would some kind person explain why the min and max macros aren't > defined when you are using c++ mode? I would guess they are not included since C++ provides the "inline" mechanism which many prefer to #define. I suspect Borland is nudging you towards C++ conventions. -bill
Technical Details
Message-ID:
<1991Apr25.161331.6794@cbnewsl.att.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!news.cs.indiana.edu!att!cbnews!cbnewsl!billReferences:
<ONEEL.91Apr25100347@heawk1.rosserv.gsfc.nasa.gov>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!news.cs.indiana.edu!att!cbnews!cbnewsl!bill From: bill@cbnewsl.att.com (william.clark) Newsgroups: comp.windows.ms.programmer Subject: Re: min/max in bc++ Message-ID: <1991Apr25.161331.6794@cbnewsl.att.com> Date: 25 Apr 91 16:13:31 GMT References: <ONEEL.91Apr25100347@heawk1.rosserv.gsfc.nasa.gov> Distribution: comp Organization: AT&T Bell Laboratories Lines: 15