Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!lll-winken!iggy.GW.Vitalink.COM!nocsun.NOC.Vitalink.COM!dumbcat!marc From: marc@dumbcat.sf.ca.us (Marco S Hyman) Newsgroups: comp.lang.c++ Subject: Re: Better Encapsulation: Overload Keywords Message-ID: <1072@dumbcat.sf.ca.us> Date: 28 Jun 91 05:46:44 GMT References: <1991Jun23.223737.31644@kuhub.cc.ukans.edu> <1991Jun25.224022.20072@alias.com> Organization: MH Software, Hayward, CA. Lines: 18 In article <1991Jun25.224022.20072@alias.com> rae@alias.com (Reid Ellis) writes: > This can easily be accomplished right now by providing an "operator > void *" method, like the iostream classes do. This is why you can say: > > while(cin) > { > cin >> buf; > // etc.. > } Many have recommended overloading void * to do this instead of overloading int (which happens to be my favorite). Is there a particular reason for prefering void * to int? // marc -- // home: marc@dumbcat.sf.ca.us pacbell!dumbcat!marc // work: marc@ascend.com uunet!aria!marc