delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/03/08:49:50

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.linux.development.apps,comp.os.msdos.djgpp,comp.unix.programmer
Subject: Re: C++ Passing ostreams by reference to methods, problem
Date: Fri, 30 May 1997 13:56:41 -0700
Organization: Alcyone Systems
Lines: 17
Message-ID: <7B1E8B43917858C0.F3AD6AE3BE2774B3.C26DE285BAFA1F15@library-proxy.airnews.net>
References: <01bc6b49$27fce100$1b2443a1 AT pcoec DOT uclm DOT es> <01bc6c06$d6e88ee0$1b2443a1 AT pcoec DOT uclm DOT es> <338DDF0E DOT 23B5C36D AT alcyone DOT com> <5mn9df$nus AT panix DOT com>
NNTP-Proxy-Relay: library.airnews.net
NNTP-Posting-Host: biceps.gymnet.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Greg Comeau wrote:

> Oh it will call the ctor, but right, it doesn't do what some would
> think.

Naturally -- creating a temporary object necessarily implies a constructor
is being called, but nothing will happen.  A good compiler might give you
a "code has no effect" warning.

-- 
       Erik Max Francis, &tSftDotIotE / email / 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
                                   \
     "Covenants without the sword / are but words."
                                 / Camden

- Raw text -


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