[Prev][Next][Index]
Re: enum type in pC++
- From: "Beata Winnicka" <bfatyga@slab.cica.indiana.edu>
- Date: Tue, 22 Nov 94 16:46:21 -0500
- To: "Vladimir Menkov" <vmenkov@kilimanjaro.cica.indiana.edu>
- Subject: Re: enum type in pC++
- Cc: sage-bugs@cica.indiana.edu
> I am sending an example where a constant (X) of enumerated
> type (dir_t) is not recognized in the assignment
> operator in function MyCollection::efoo().
This is now fixed and your example parses. In the future, you should
keep in mind that, due to the special scoping rules for
MethodOfElement functions; inside such functions you can only refer
to enumerators declared at top level (i.e., in the global scope).
--Beata