comp.lang.ada
 help / color / mirror / Atom feed
From: Wilhelm Spickermann <zhopi.20.unbenutzbar@spamgourmet.com>
Subject: Re: Records that could be arrays
Date: Thu, 23 Feb 2006 15:29:12 +0100
Date: 2006-02-23T15:29:12+01:00	[thread overview]
Message-ID: <dtkgrp$1fkc$1@ulysses.news.tiscali.de> (raw)
In-Reply-To: VEiLf.19642$HU.5327@trnddc04

Hi,

Justin Gombos wrote:

> On 2006-02-23, Wilhelm Spickermann
> <zulo.20.unbenutzbar@spamgourmet.com> wrote:
>>
>> I think it depends on the meaning of "type". The three
>> floating point numbers in a polar coordinate system are of
>> three different _kinds_ and should be put into a record and
>> not into an array -- even if they have the same _type_.
> 
> Why?
> 

These coordinates are of a different kind as they are used
differently -- all geometric formulas handle them differently.
So it is just a coincidence if they are of the same type and so
I wouldn't draw design decisions from the type alone. 

This becomes also visible in the missing loop statements in
typical polar coordinate operations. And it would be rather
unusual for an array to have a special equality definition while
it is rather normal for a record (phi is "dont care" when theta
is zero -- or AFAIK the other way round in North America).

Wilhelm




  reply	other threads:[~2006-02-23 14:29 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-23  4:11 Records that could be arrays Justin Gombos
2006-02-23  4:51 ` tmoran
2006-02-23 13:19   ` Justin Gombos
2006-02-24 10:19     ` Stephen Leake
2006-02-23  6:32 ` Wilhelm Spickermann
2006-02-23 13:08   ` Stephen Leake
2006-02-23 13:20   ` Justin Gombos
2006-02-23 14:29     ` Wilhelm Spickermann [this message]
2006-02-24 10:31       ` Stephen Leake
2006-02-26 22:34         ` Wilhelm Spickermann
2006-02-23  8:21 ` john Doef
2006-02-23  9:22 ` Jean-Pierre Rosen
2006-02-23 13:11   ` Stephen Leake
2006-02-23 13:37   ` Justin Gombos
2006-02-23 13:06 ` Stephen Leake
2006-02-23 20:23   ` Simon Wright
2006-02-24 21:23   ` Randy Brukardt
2006-02-25 11:39     ` Dmitry A. Kazakov
2006-02-26  3:24       ` Steve Whalen
2006-02-26  9:51         ` Dmitry A. Kazakov
2006-02-27  2:26           ` Steve Whalen
2006-02-27  9:33             ` Dmitry A. Kazakov
2006-03-01 22:44             ` Robert A Duff
replies disabled

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