This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Migrating C++ source from Microsoft Windows NT to SCO Unix


Craig Rodrigues wrote:
> 
> On Thu, Mar 29, 2001 at 11:19:49AM +1000, Timothy_Ko@nag.national.com.au wrote:
> >
> > 2.   NabString.h:594: macro `isalnum' used without args
> >
> >      where we declare as:
> >      virtual const bool NabString::isalnum() const;
> 
> isalnum() may be implemented as a macro in ctype.h, so implementing
> it yourself as a function could be a problem.

In C++ it's required to be a function, and having a class member
function with the same name is legal.

-- 
Ross Smith <ross.s@ihug.co.nz> The Internet Group, Auckland, New Zealand
========================================================================
        "Hungarian notation is the tactical nuclear weapon of
         source code obfuscation techniques." -- Roedy Green


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]