comp.lang.ada
 help / color / mirror / Atom feed
From: dvdeug@my-dejanews.com
Subject: Re: non-consecutive ranges
Date: 1999/05/01
Date: 1999-05-01T00:00:00+00:00	[thread overview]
Message-ID: <7gfjfc$alt$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 7gesqf$pfc$1@nnrp1.dejanews.com

In article <7gesqf$pfc$1@nnrp1.dejanews.com>,
  Robert Dewar <robert_dewar@my-dejanews.com> wrote:
> That's actually quite a nice extension, which can be done as an
> attribute (and therefore is an "allowed" extension).
[...]
> Then Domain_Check would be called whenever a value of type Odd_Integer
> was modified. Another formulation would be
>
>   function Check (X : Odd_Integer) return Odd_Integer;
>
> which would have the opportunity of modifying the assigned value before
> the assignment.
>
> Thoughts?
>
> Useful feature?
> Silly bell and whistle?

It's interesting. I think the second one is more useful, and if it existed, I
would probably use it at one point. But it is redundant with Ada's typing
system, and non-portable, so I'd head towards the bell and whistle side.

--
David Starner - dstarner98@aasaa.ofe.org

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  reply	other threads:[~1999-05-01  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-30  0:00 non-consecutive ranges vlight
1999-04-30  0:00 ` Tucker Taft
1999-04-30  0:00   ` dennison
1999-04-30  0:00 ` dennison
1999-05-01  0:00 ` Robert Dewar
1999-05-01  0:00   ` dvdeug [this message]
1999-05-01  0:00 ` Ehud Lamm
1999-05-01  0:00   ` bglbv
1999-05-02  0:00     ` Ehud Lamm
1999-05-01  0:00 ` Robert B. Love 
1999-05-04  0:00   ` fraser
1999-05-03  0:00 ` Josh Highley
replies disabled

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