From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.acm.org>
Subject: Re: Saturation arithmetic woes.
Date: Wed, 29 Jul 2009 11:14:34 -0700
Date: 2009-07-29T11:14:34-07:00 [thread overview]
Message-ID: <h4q3i9$2lil$1@news.ett.com.ua> (raw)
In-Reply-To: 1a16b458-0201-4320-9787-2836ed58f991@e27g2000yqm.googlegroups.com
xorque wrote:
> generic
> type Discrete_Type is (<>);
This may be any discrete type, including an enumeration type. Arithmetic is not
defined for enumeration types, so you do not automatically get "+" for this. You
either need to explicitly require a "+" function ("with function "+" ...), or
use a generic formal type that does include "+": "is range <>" or "is mod <>".
--
Jeff Carter
"What I wouldn't give for a large sock with horse manure in it."
Annie Hall
42
next prev parent reply other threads:[~2009-07-29 18:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-29 17:03 Saturation arithmetic woes xorque
2009-07-29 17:13 ` Martin
2009-07-29 18:14 ` Jeffrey R. Carter [this message]
2009-07-29 19:14 ` Niklas Holsti
2009-07-29 19:39 ` xorque
2009-07-30 9:09 ` Jean-Pierre Rosen
2009-07-30 11:51 ` Martin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox