From: Simon Wright <simon@pogner.demon.co.uk>
Subject: Re: Simple Case Study in Types. Chords.
Date: 1999/11/20
Date: 1999-11-20T00:00:00+00:00 [thread overview]
Message-ID: <x7vogcpowyx.fsf@pogner.demon.co.uk> (raw)
In-Reply-To: 3831283B.20807F08@interact.net.au
G <Dizzy@interact.net.au> writes:
> With the following code fragments, I am not
> sure if I constructed the types in [Chord_Definition.ads]
> such that they actually mean what I think they do.
Since I don't know what you think they mean (!), may I just suggest
> type Twelve_Tone is
> -- Thirteen because that allows the octave.
> (One, Two, Three, Four,
> Five, Six, Seven, Eight,
> Nine, Ten, Eleven, Twelve, Thirteen);
>
> type Chord_List is array (1..13) of Twelve_Tone;
-- Assuming that no Chord ever spans more than an octave, we can
-- represent a Chord by indicating the Notes present in it
type Chord is array (Twelve_Tone) of Boolean;
next prev parent reply other threads:[~1999-11-20 0:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-16 0:00 Simple Case Study in Types. Chords G
1999-11-20 0:00 ` Simon Wright [this message]
1999-12-04 0:00 ` Richard D Riehle
1999-12-06 0:00 ` Robert Dewar
1999-12-06 0:00 ` David W. Glessner
1999-12-11 0:00 ` tmoran
1999-12-06 0:00 ` Richard D Riehle
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox