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,45a9122ddf5fcf5 X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: Valid Attribute and Unchecked Conversion Date: 1996/10/04 Message-ID: #1/1 X-Deja-AN: 187518284 references: organization: The World Public Access UNIX, Brookline, MA newsgroups: comp.lang.ada Date: 1996-10-04T00:00:00+00:00 List-Id: In article , Keith Thompson wrote: >Are sparse enumeration types are really used all that much in real life? They shouldn't be, because, as you explained, they don't work. Using sparse enums is asking for erroneousness. Well, it's not *quite* that bad: You can use a sparse enum for sending data from Ada to the outside world (e.g. doing output, passing parameters *to* an imported subprogram, unchecked converting *from* a sparse enum, etc). But the other direction doesn't always work, and should be avoided, IMHO. The whole feature causes an awful lot of complexity in compilers, given that it's not very useful. Sigh. - Bob