From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: Selecting Components
Date: Mon, 09 Jan 2006 01:12:18 +0100
Date: 2006-01-09T01:07:31+01:00 [thread overview]
Message-ID: <1136765537.9323.18.camel@sonnenregen> (raw)
In-Reply-To: <UrVvf.339$Hd4.149@newsread1.news.pas.earthlink.net>
On Sat, 2006-01-07 at 20:24 +0000, Jeffrey R. Carter wrote:
> What would be the consequences if a language were designed so that all
> selections used dot notation, including arrays:
>
> Array.Index
> Array.Index_1, Index_2
> Array.Low .. High
Interesting.
Is "Index_1, Index_2" and expression, or an identifier
as in Pack.Op, Rec.Comp, etc.?
with Index;
...
declare
Index: ...
begin
for k in a'range loop
Result := Result + a.Index.k;
end loop;
end;
For the record, in Eiffel you'd write array @ expr,
Haskell uses array !! expr.
Eiffel uses '.' for object.feature, not as an operator.
Haskell uses '.' for function composition, too, if surrounded
by white space.
next prev parent reply other threads:[~2006-01-09 0:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-07 20:24 Selecting Components Jeffrey R. Carter
2006-01-08 1:09 ` (see below)
2006-01-08 6:18 ` Jeffrey R. Carter
2006-01-08 20:35 ` Keith Thompson
2006-01-08 10:58 ` Dmitry A. Kazakov
2006-01-09 0:12 ` Georg Bauhaus [this message]
2006-01-09 4:41 ` Jeffrey R. Carter
2006-01-11 2:29 ` Stephen Leake
2006-01-11 3:01 ` Jeffrey R. Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox