From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Generic Zero Length Array
Date: Sat, 23 Feb 2008 10:30:02 +0100
Date: 2008-02-23T10:30:04+01:00 [thread overview]
Message-ID: <qld4zz0m3shr.bakzr6kdsa4m.dlg@40tude.net> (raw)
In-Reply-To: 7cd05c2a-d67a-4623-a9dc-67e357877f48@e6g2000prf.googlegroups.com
On Fri, 22 Feb 2008 15:01:02 -0800 (PST), Adam Beneschan wrote:
> [Actually, there's one case where you still can't specify a null array
> aggregate, and that's where the index type is either "mod 1" or an
> enumeration type with one value:
>
> type Enum is (This_One);
> type Arr is array (Enum range <>) of Anything;
>
> Now go ahead and try to specify a zero-element array aggregate of type
> Arr. You can't. But this is a pretty pathological case so it's not
> worth trying to change the language for it.]
I think it would, because the problem is that a null range cannot
specified. And more generally is that ranges aren't first-class citizens.
The language would be better if that were fixed.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2008-02-23 9:30 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-22 13:31 Generic Zero Length Array shaunpatterson
2008-02-22 13:53 ` Egil Høvik
2008-02-22 13:55 ` shaunpatterson
2008-02-22 14:11 ` Georg Bauhaus
2008-02-22 19:25 ` Randy Brukardt
2008-02-22 23:01 ` Adam Beneschan
2008-02-23 9:30 ` Dmitry A. Kazakov [this message]
2008-02-23 14:27 ` Robert A Duff
2008-02-23 16:16 ` Dmitry A. Kazakov
2008-02-25 16:41 ` Adam Beneschan
2008-02-25 19:14 ` Robert A Duff
2008-02-22 19:25 ` Randy Brukardt
2008-02-22 19:25 ` Randy Brukardt
2008-02-22 14:23 ` Stefan Lucks
2008-02-22 16:52 ` Adam Beneschan
2008-02-22 14:26 ` Robert A Duff
2008-02-22 15:22 ` Stefan Bellon
2008-02-22 23:03 ` Adam Beneschan
2008-02-23 10:19 ` Stefan Bellon
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox