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,c7d533acec91ae16 X-Google-Attributes: gid103376,public From: Robert A Duff Subject: Re: Question for the folks who designed Ada95 Date: 1999/04/28 Message-ID: #1/1 X-Deja-AN: 471923890 Sender: bobduff@world.std.com (Robert A Duff) References: <7g2qu4$ca4$1@usenet.rational.com> <7g3b5g$p92$1@nnrp1.dejanews.com> <7g4ae3$hjh2@ftp.kvaerner.com> <7g4mk7$upg$1@nnrp1.dejanews.com> <3726A2B1.5793E3BE@rocketmail.com> <7g6upj$v5c$1@nnrp1.dejanews.com> Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 1999-04-28T00:00:00+00:00 List-Id: Robert Dewar writes: > There are issues of what types it can be applied to. Shift > operations applied for example to non-binary modular types > are quite a puzzle. And then generic contract problems rear their ugly heads. > In GNAT, we allow shifts to be applied to any signed or > binary unsigned integer type whose size is 8, 16, 32, or > 64 (i.e. natural machine sizes for which shifts make > sense). What does GNAT do if it's a generic formal modular type? I would guess it just checks the rule in the instance. That's fine for an implementation-defined gizmo, but for a language-defined feature, we would never want to do that. - Bob -- Change robert to bob to get my real email address. Sorry.