delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/04/15:33:50

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C++ class interaction and overloading (should be simple answer)
Date: Sun, 03 Aug 1997 22:35:06 -0700
Organization: Alcyone Systems
Lines: 21
Message-ID: <33E56A0A.3C718232@alcyone.com>
References: <33E3B107 DOT 63DEA07F AT execulink DOT com> <5s3l9f$o46 AT freenet-news DOT carleton DOT ca>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Paul Derbyshire wrote:

> Try omitting the space after "operator":
> 
>      inline friend Vector operator* (Matrix& mat, Vector& vect);

The original post hasn't shown up on my server, but this shouldn't be the
problem.  It's perfectly legal for there to be whitespace between the
`operator' keyword and the symbol in the function name.  operator new is a
good example, since you _have_ to have whitespace.  Namely, I do it all
the time.

The problem is something else.

-- 
       Erik Max Francis, &tSftDotIotE / email / mailto:max AT alcyone DOT com
                     Alcyone Systems /   web / http://www.alcyone.com/max/
San Jose, California, United States /  icbm / 37 20 07 N  121 53 38 W
                                   \
   "Love is not love which alters / when it alteration finds."
                                 / William Shakespeare, _Sonnets_, 116

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019