Groups | Search | Server Info | Login | Register


Groups > comp.lang.misc > #11719

Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays

From Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups comp.lang.misc
Subject Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays
Date 2025-12-28 15:53 +0100
Organization A noiseless patient Spider
Message-ID <10irg9u$2suuo$2@dont-email.me> (permalink)
References <10ilrbc$25ihi$10@dont-email.me> <10ir98e$4b53$1@dont-email.me> <loops-20251228151118@ram.dialup.fu-berlin.de> <algol-20251228152842@ram.dialup.fu-berlin.de>

Show all headers | View raw


On 2025-12-28 15:29, Stefan Ram wrote:
> ram@zedat.fu-berlin.de (Stefan Ram) wrote or quoted:
> 
>    So, I was, like, thinking you guys were using FORTRAN.
>    But now I see "Algol" in the subject!

Yeah, an old language but not *that* old! ;-)

> BEGIN
>    INT n = 4;
>    [1:4]INT bases;
>    bases := (2,3,2,2);
>    INT product := 1;
>    
>    # Standard for loop #
>    FOR i FROM 1 TO n DO product := product * bases[i] OD;
>    
>    FOR count FROM 0 TO product - 1 DO
>      INT temp := count;
>      [1:4]INT digits := (0,0,0,0);
>      
>      INT j := 1;
>      WHILE j <= n DO
>        digits[j] := temp MOD bases[j];
>        temp := temp OVER bases[j];
>        j +:= 1
>      OD;
>      
>      print((whole(digits[4], 0), " ", whole(digits[3], 0), " ",
>             whole(digits[2], 0), " ", whole(digits[1], 0), newline))
> 
>    OD;
>    
> END

I'm delighted to see there's still people around that are "speaking"
Algol 68. :-)

Thanks.

Janis

Back to comp.lang.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Algol 68 (or generally) - arbitrarily nested arrays of arrays Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-12-26 12:25 +0100
  Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays Andy Walker <anw@cuboid.co.uk> - 2025-12-28 12:53 +0000
    Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays ram@zedat.fu-berlin.de (Stefan Ram) - 2025-12-28 14:13 +0000
      Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays ram@zedat.fu-berlin.de (Stefan Ram) - 2025-12-28 14:29 +0000
        Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays ram@zedat.fu-berlin.de (Stefan Ram) - 2025-12-28 14:41 +0000
          Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays ram@zedat.fu-berlin.de (Stefan Ram) - 2025-12-28 14:45 +0000
            Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays ram@zedat.fu-berlin.de (Stefan Ram) - 2025-12-28 23:22 +0000
        Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-12-28 15:53 +0100
    Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-12-28 15:47 +0100
      Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays Andy Walker <anw@cuboid.co.uk> - 2025-12-30 16:29 +0000
        Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-01-01 12:21 +0100
          Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays David Brown <david.brown@hesbynett.no> - 2026-01-01 17:18 +0100
  Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays bart <bc@freeuk.com> - 2025-12-28 15:32 +0000
    Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-12-28 23:48 +0100
    Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-12-28 22:54 +0000
      Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays bart <bc@freeuk.com> - 2025-12-28 23:07 +0000
        Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-12-28 23:29 +0000
  Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays antispam@fricas.org (Waldek Hebisch) - 2025-12-28 21:43 +0000
    Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-12-28 23:50 +0100

csiph-web