From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b007c42c7898f4ef X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: First attribute on Enumerated types Date: 1999/02/24 Message-ID: #1/1 X-Deja-AN: 447749030 Sender: matt@mheaney.ni.net References: <001e01be5f9d$ebe4d7e0$5b824a0c@rogers> <36D3678F.6C3CB1F6@aasaa.ofe.org> NNTP-Posting-Date: Tue, 23 Feb 1999 19:43:14 PDT Newsgroups: comp.lang.ada Date: 1999-02-24T00:00:00+00:00 List-Id: David Starner writes: > Since I quickly composed the first message, here's the actual code. > Color is definitely a type. It should be enumerated - is there any > way to tell the compiler that? In retrospect, that's probably my error. > > with Lists; > generic > type Node_type is private; > type Color is private; > package Tree is Say this instead: generic type Node_type is private; type Color is (<>); package Tree is Read the section of the RM (or your fav textbook) that describes "generic formal types."