TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ALBERTO MONTEIRO
from: THOMAS MAEDER
date: 1997-12-18 17:58:00
subject: What`s wrong with this?

AM> CC>    Are two default values legal?
AM> I guess it is
Yes, they are.
AM> I had used the operator+ as above, but latter I found it would be mo
AM> elegant to make it a member function
It's  usually  better  not  to  make  "symmetrical"  operators  member
functions   because  type  conversions  are  then  performed  on  both
operands.
Thomas
---
 þ MM 1.0 #0113 þ Press any key - EXCEPT THAT ONE!!!
---------------
* Origin: McMeier & Son BBS (2:301/138)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.