home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.asd.contel.com!emory!sol.ctr.columbia.edu!spool.mu.edu!agate!netsys!news!lsi!mhost!cl301!ameesh
- From: ameesh@lsil.com (Ameesh Desai)
- Newsgroups: comp.lang.c++
- Subject: Re: Wanted: Example of Contravariance
- Message-ID: <1992Nov10.195355.19698@lsil.com>
- Date: 10 Nov 92 19:53:55 GMT
- References: <rmartin.721098936@thor>
- Sender: news@lsil.com (news caster)
- Reply-To: ameesh@lsil.com
- Organization: LSI Logic Corporation
- Lines: 34
- Nntp-Posting-Host: cl301
-
- In article 721098936@thor, rmartin@thor.Rational.COM (Bob Martin) writes:
- >srheintze@happy.colorado.edu writes:
- >
- >>Can someone please give me a small example of contravariance I can compile and
- >>run with Borland C++ v3.1 or Microsoft C++ v7?
- >
-
- [suff deleted]
-
- >class B
- >{
- > public:
- > virtual B& void f(B&);
- ^^^^^^^^^^^^^^ ???? what is "virtual B& void f(B&)" ?
- Am I missing something here or is this a syntax error ?
- >};
-
- [stuff deleted]
-
- >
- >--
- >Robert Martin Training courses offered in:
- >R. C. M. Consulting Object Oriented Analysis
- >2080 Cranbrook Rd. Object Oriented Design
- >Green Oaks, Il 60048 (708) 918-1004 C++
-
-
-
- ---
- ______________________________ o__
- | _ /| Ameesh Desai \ ,>/_
- | \`O.o' LSI Logic Corp. \__(_)`(_)_ email: ameesh@lsil.com
- | =(_|_)= MS E192, 1501 McCarthy Blvd. \ fax : (408) 433-6802
- |____U_______Milpitas, CA 95035____________\____________voice: (408) 433-4097
-