gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Query on FIO.WriteCardinal(StdOut,...)


From: john o goyo
Subject: Query on FIO.WriteCardinal(StdOut,...)
Date: Wed, 5 Jul 2023 11:07:11 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

Greetings, Gaius.

There seems to be a problem with FIO.WriteCardinal(StdOut,...).

Here is my output.mod:

MODULE output;

FROM FIO IMPORT WriteString, WriteCardinal, WriteLine, StdOut;

PROCEDURE WriteOut(n :CARDINAL);
BEGIN
   WriteString(StdOut, "n = ");
   WriteCardinal(StdOut, n);
   WriteLine(StdOut)
END WriteOut;

BEGIN
   WriteString(StdOut, "Counting in gm2: ");
   WriteOut(0);
   WriteOut(1);
   WriteOut(2);
   WriteOut(3);
   WriteOut(1000);
   WriteOut(1024)
END output.

Here is the actual output:

Counting in gm2: n =
n =
n =
n =
n =
n =

Please advise.

Sincerely,
john




reply via email to

[Prev in Thread] Current Thread [Next in Thread]