Groups | Search | Server Info | Login | Register
Groups > comp.lang.misc > #11483
| From | Janis Papanagnou <janis_papanagnou+ng@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.misc |
| Subject | Re: Algol 68 - array of procedures aligned at index 0 ? |
| Date | 2025-11-02 07:33 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <10e6u0m$1sbrr$1@dont-email.me> (permalink) |
| References | <10e57b0$1bb59$1@dont-email.me> <10e5s1r$19lks$1@dont-email.me> |
On 01.11.2025 21:54, Andy Walker wrote: > On 01/11/2025 15:00, Janis Papanagnou wrote: >> Is there a way in Algol 68 that I can create an array indexed [0..1] of >> procedures to be initialized by an _identity_ declaration as 'p' below? >> PROC g = BOOL : ... ; >> PROC h = BOOL : ... ; >> [] PROC BOOL p = >> CASE n IN >> ( h, g ), >> ( g, h ) >> ESAC; >> Like this code but array 'p' with indices 0..1 (instead of 1..2). > > The problem is that "(h,g)" is an array indexed starting at 1. > So you need to re-base the array by using "[@0]". Yeah. I had tried a couple variants with '[AT 0]', but to no avail. > The obvious place to put that is immediately after the "ESAC", It didn't occur to me to extract these to an outer level here. In my tries I've had spread the 'AT's at the array elements directly. > but A68G complains on the > perhaps spurious ground that the "[@0]"can only be applied to a row or > similar. These Genie's errors was that made me finally give up my tries. > I don't know whether this is also a true A68 limitation or a > minor A68G bug/divergence. Maybe I'll also ask what Marcel thinks; specifically concerning Genie, or generally concerning the standard. (Maybe it's an oversight; can't tell.) > The simplest workaround seems to be to > declare "pp" in the way you've declared "p", and then declare > "[] PROC BOOL p = pp[@0];". I had intended to avoid "spurious" declarations, but to keep the later code's logic clearer it might be worth to follow that path. > >> Declaring 'p' with [0:1] isn't possible it seems for the identity case >> where a formal [] declarer seems necessary. > > True. In "[] PROC BOOL p = whatever", "p" takes its bounds from > those of "whatever", so it's "whatever" rather than "p" that has to have > the bounds you want. > >> While an _assignment_ like >> [0:1] PROC BOOL p := ... ; >> is obviously possible. > > It's possible, but you will still have problems unless "..." has > bounds "0:1". In cases similar to your code above, it might still be best > to create an object specifically of the correct type/mode, so starting at > 1 by default and then re-basing that. Thanks. Janis
Back to comp.lang.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-01 16:00 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? Andy Walker <anw@cuboid.co.uk> - 2025-11-01 20:54 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-02 07:33 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-02 09:50 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? Andy Walker <anw@cuboid.co.uk> - 2025-11-02 11:10 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-02 11:44 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-02 13:12 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-02 13:23 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? Andy Walker <anw@cuboid.co.uk> - 2025-11-03 00:42 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-03 15:03 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-03 16:40 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-03 17:00 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-03 21:02 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-03 20:34 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-03 22:35 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-03 23:37 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-04 07:16 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-04 11:10 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? David Brown <david.brown@hesbynett.no> - 2025-11-04 16:46 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-04 16:17 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-04 17:26 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? David Brown <david.brown@hesbynett.no> - 2025-11-04 17:49 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-04 18:38 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-04 19:30 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? David Brown <david.brown@hesbynett.no> - 2025-11-04 21:04 +0100
Homebrew languages (was: Algol 68 - array of procedures aligned at index 0 ?) bart <bc@freeuk.com> - 2025-11-06 00:39 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-05 12:52 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-05 14:02 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-04 18:28 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? David Brown <david.brown@hesbynett.no> - 2025-11-04 21:14 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-03 17:32 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-03 20:28 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-03 20:10 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-03 22:31 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-04 12:24 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? David Brown <david.brown@hesbynett.no> - 2025-11-04 17:02 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-05 12:25 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-05 14:12 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-05 14:28 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-06 08:29 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-06 14:18 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-06 15:58 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Andy Walker <anw@cuboid.co.uk> - 2025-11-07 21:22 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-07 23:13 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-08 03:17 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? antispam@fricas.org (Waldek Hebisch) - 2025-11-08 03:50 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-08 04:47 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-08 12:42 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-08 21:37 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-09 20:34 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-09 21:08 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? antispam@fricas.org (Waldek Hebisch) - 2025-11-09 16:58 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-08 11:34 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? antispam@fricas.org (Waldek Hebisch) - 2025-11-09 17:16 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-09 19:11 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-09 20:58 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? antispam@fricas.org (Waldek Hebisch) - 2025-11-10 13:56 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-10 20:52 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? antispam@fricas.org (Waldek Hebisch) - 2025-11-11 12:53 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-11 20:51 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? David Brown <david.brown@hesbynett.no> - 2025-11-06 17:14 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-06 19:41 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-06 22:01 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-08 12:24 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Andy Walker <anw@cuboid.co.uk> - 2025-11-07 23:33 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Andy Walker <anw@cuboid.co.uk> - 2025-11-04 00:35 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-04 07:07 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-04 14:57 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Andy Walker <anw@cuboid.co.uk> - 2025-11-05 23:59 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-06 01:03 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-06 07:40 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-06 10:59 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Andy Walker <anw@cuboid.co.uk> - 2025-11-06 16:59 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-06 17:58 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-06 20:14 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-06 22:16 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-06 22:47 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Andy Walker <anw@cuboid.co.uk> - 2025-11-07 14:34 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-07 15:42 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Andy Walker <anw@cuboid.co.uk> - 2025-11-07 16:50 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-07 19:49 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-07 20:01 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Andy Walker <anw@cuboid.co.uk> - 2025-11-08 00:26 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-08 01:54 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-08 14:00 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-08 15:24 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Andy Walker <anw@cuboid.co.uk> - 2025-11-10 00:11 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-10 00:43 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? David Brown <david.brown@hesbynett.no> - 2025-11-10 09:08 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? antispam@fricas.org (Waldek Hebisch) - 2025-11-10 13:28 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? ram@zedat.fu-berlin.de (Stefan Ram) - 2025-11-10 10:11 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-10 11:02 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Andy Walker <anw@cuboid.co.uk> - 2025-11-10 15:00 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? antispam@fricas.org (Waldek Hebisch) - 2025-11-10 15:52 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-10 17:05 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-10 10:10 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? Andy Walker <anw@cuboid.co.uk> - 2025-11-10 15:48 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-07 17:59 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-07 18:39 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-12 11:01 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-12 20:47 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-12 22:22 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-12 23:28 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-13 01:31 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-11-13 09:35 +0100
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-13 11:37 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-04 01:05 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? bart <bc@freeuk.com> - 2025-11-04 01:24 +0000
Re: Algol 68 - array of procedures aligned at index 0 ? Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-04 02:28 +0000
csiph-web