comp.lang.ada
 help / color / mirror / Atom feed
From: "Sergey Koshcheyev" <serko84@hotmail.com>
Subject: Re: Missing **-operator in GNAT 3.14?
Date: Tue, 2 Apr 2002 19:11:01 +0200
Date: 2002-04-02T19:11:01+02:00	[thread overview]
Message-ID: <a8con5$2emm$1@ns.felk.cvut.cz> (raw)
In-Reply-To: mailman.1017765842.8487.comp.lang.ada@ada.eu.org

"David C. Hoos" <david.c.hoos.sr@ada95.com> wrote in message
news:mailman.1017765842.8487.comp.lang.ada@ada.eu.org...
> What is the difference between these two operators, in this context?
>
> David Hoos

The difference apparently lies in this:
7. The highest precedence exponentiation operator ** is predefined for every
specific integer type T with the following specification:
8. function "**"(Left : T; Right : Natural) return T
(http://www.ada-auth.org/arm-html/RM-4-5-6.html)

So the second operand of "**" has to be of type Natural, regardless of the
type of the first operand.

Sergey.





  reply	other threads:[~2002-04-02 17:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-02  8:56 Missing **-operator in GNAT 3.14? Anders Råberg
2002-04-02 11:14 ` David C. Hoos, Sr.
2002-04-02 16:18   ` Robert Dewar
2002-04-02 16:42     ` David C. Hoos
2002-04-02 17:11       ` Sergey Koshcheyev [this message]
2002-04-03  1:02         ` Robert Dewar
2002-04-03  3:51           ` Steve Doiel
  -- strict thread matches above, loose matches on Subject: below --
2002-04-02 17:07 Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox