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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,950b357d6db67d4e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-11 09:56:02 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!in.100proofnews.com!in.100proofnews.com!pd7cy1no!shaw.ca!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Contrained ada type in java References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Thu, 11 Dec 2003 17:56:02 GMT NNTP-Posting-Host: 63.184.8.229 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.pas.earthlink.net 1071165362 63.184.8.229 (Thu, 11 Dec 2003 09:56:02 PST) NNTP-Posting-Date: Thu, 11 Dec 2003 09:56:02 PST Xref: archiver1.google.com comp.lang.ada:3393 Date: 2003-12-11T17:56:02+00:00 List-Id: > "Ed Trubia" wrote: >> type ET_ACTIVE_PORT_CONFIGURATION is >> ( HDX_TX1_RX1, >> HDX_TX2_RX2, >> HDX_TX1_RX2, >> HDX_TX2_RX1, >> FDX_TX1_RX2, >> FDX_TX2_RX1); >> >> for ET_ACTIVE_PORT_CONFIGURATION use >> ( HDX_TX1_RX1 => 62, >> HDX_TX2_RX2 => 23, >> HDX_TX1_RX2 => 34, >> HDX_TX2_RX1 => 45, >> FDX_TX1_RX2 => 54, >> FDX_TX2_RX1 => 61); Since this won't compile (the enumeration values must be monotonically increasing), it should be impossible to implement in Java. -- Jeff Carter "Sir Lancelot saves Sir Gallahad from almost certain temptation." Monty Python & the Holy Grail 69