Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!bellcore!salt!roadster!garnett From: garnett@roadster.bellcore.com (Michael Garnett) Newsgroups: comp.lang.c++ Subject: Re: Monthly posting of Turbo-C++ bug list Message-ID: <1991Jan4.113310@roadster.bellcore.com> Date: 3 Jan 91 15:02:10 GMT References: <9101010531.AA05142@cheetah.ece.clarkson.edu> Sender: news@salt.bellcore.com Reply-To: garnett@thumper.bellcore.com Organization: Information Networks Research (Bellcore) Lines: 37 In article <9101010531.AA05142@cheetah.ece.clarkson.edu>, cline@cheetah.ece.clarkson.edu (Marshall Cline) writes: |> |> Severity: ?? |> Workaround: None provided |> Versions: ?? |> Disclaimer: I haven't personally checked this -- MPC |> Thanks to: Joseph Puglielli, Santa Barbara, CA |> |> The following two `x's shouldn't conflict, since `x' is a local `type' |> in each class. However they do conflict. |> |> class A { enum x { zero, one, two }; }; |> class B { enum x { apple, orange, pear }; }; |> |> ------------------------------------------------------------------------ ------ C++ does not support type nesting until 2.1. TC++ is a 2.0 compiler. Hence, the name conflict. In 2.1, their names are A::x and B::x. ------------------------------------------------------------------------ --------- ********* Michael S. Garnett ** o ** Information Networks Research ** _- -_ ** Ph: 201-829-4591 ** / \ ** Internet: garnett@thumper.bellcore.com * | | * UUCP: ...!bellcore!thumper!garnett ** | | ** ** /_______\ ** // I speak for only myself, and NOT any company or ** o ** // organization directly or indirectly associated with ********* // Bell Communications Research