Path: utzoo!attcan!uunet!kddlab!titcca!sragwa!wsgw!socslgw!diamond!diamond From: diamond@diamond.csl.sony.junet (Norman Diamond) Newsgroups: comp.lang.c++ Subject: Re: Gnu Gbugs? Message-ID: <10260@socslgw.csl.sony.JUNET> Date: 17 May 89 12:30:08 GMT References: <1887@ektools.UUCP> Sender: news@csl.sony.JUNET Reply-To: diamond@csl.sony.junet (Norman Diamond) Organization: Sony Computer Science Laboratory Inc., Tokyo, Japan Lines: 44 In article <1887@ektools.UUCP> randolph@ektools.UUCP (Gary L. Randolph) writes: >Are the following current Gnu gbugs??? >1.) >overload show; >void show(int x) { cout<<"\nThe integer is: "<void show(int x, int y) > { cout<<"\nThe integers are: "<void show(float f) { cout<<"\nThe float is: "<main() { show(3.14); } >The integer is: 3 //Here's the rub >AT&T followed the exact match rule without error. IMHO 3.14 is a constant of type double, which is not an exact match for either float or int. Looks like a bug in both gnu and cfront. >2.) >class A { private: int x; ... } >class B : A { ... privPrint(){cout<<"x is: "<3.) Wants >Federation::Federation(char* util, char* id, int meds, > int fp, int sob) > :StarCruiser(util) instead of >Federation::Federation(char* util, char* id, int meds, > int fp, int sob) > :(util) One of Dr. Stroustrup's published articles has already promised this. In fact, it will be necessary to do this with multiple inheritance. -- Norman Diamond, Sony Computer Science Lab (diamond%csl.sony.co.jp@relay.cs.net) The above opinions are my own. | Why are programmers criticized for If they're also your opinions, | re-implementing the wheel, when car you're infringing my copyright. | manufacturers are praised for it?