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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!j32g2000yqh.googlegroups.com!not-for-mail From: Rod Chapman Newsgroups: comp.lang.ada Subject: Re: SPARK left/right shift. Date: Tue, 21 Jul 2009 02:21:38 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2faafa7c-91d1-40b7-86ca-960af91d1589@j32g2000yqh.googlegroups.com> References: <9d0eb92b-bb21-40eb-ac6d-2e1e829b95cc@s15g2000yqs.googlegroups.com> NNTP-Posting-Host: 217.205.167.137 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1248168099 4375 127.0.0.1 (21 Jul 2009 09:21:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 21 Jul 2009 09:21:39 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j32g2000yqh.googlegroups.com; posting-host=217.205.167.137; posting-account=HCzrEgkAAABSfGsTnv-u5wET6EzuneVi User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 GTB5 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7203 Date: 2009-07-21T02:21:38-07:00 List-Id: On Jul 21, 10:07=A0am, xorque wrote: > Hi. > > What's the "correct" way to get access to left/right shift operations > for modular types in SPARK? The standard shift/rotate functions in Interfaces are overloaded, so not legal SPARK. The way round this is to declare a "shadow" package that de-overloads them for SPARK. I'll post an example of how to do it in a minute... - Rod