From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26673 invoked from network); 4 Feb 2022 06:07:37 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 4 Feb 2022 06:07:37 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id EF9829CE56; Fri, 4 Feb 2022 16:07:34 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 17375951B5; Fri, 4 Feb 2022 16:07:14 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=heliconbooks-com.20210112.gappssmtp.com header.i=@heliconbooks-com.20210112.gappssmtp.com header.b="kP+YMqGS"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 525B1951B5; Fri, 4 Feb 2022 16:07:11 +1000 (AEST) Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) by minnie.tuhs.org (Postfix) with ESMTPS id 7EF2495192 for ; Fri, 4 Feb 2022 16:07:10 +1000 (AEST) Received: by mail-yb1-f174.google.com with SMTP id w81so15674603ybg.12 for ; Thu, 03 Feb 2022 22:07:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heliconbooks-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=d+qdbZtuNSNBFRma2v4oPe6QeuE7I2qbfrUKrKdAzwc=; b=kP+YMqGS7kLUgQk8zbSiXP5s8TxufRtlx1W2yyceXCsluG9+9hJyMhRaBBTqyBN2T7 LAnI6vsJ7itx0QJM7Bu5XbsQDwrn0sB9HF6dnIPWGFydvqja5nxNAgjlbrUP0Tglm7b1 otc+zY7D5Drq3QRRNN9fFvDBy7xYs3M6Im4Nypk+RPdBqqTL6V7YU4QDY92ukyRCCmi+ ofhVinZWpw5y1NQkOzOz+ZmDTt6ZcuO/ue0oTPjlm8LOUHchRwlAjiW3XGPFaF5r+rrF 2Ivf4VzlYJ1rR13axbKqY0hSTJlwiRAi2zyNhTQ1V1WNNRFAXaEJgFp509XuAPMJznbS xWtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=d+qdbZtuNSNBFRma2v4oPe6QeuE7I2qbfrUKrKdAzwc=; b=rAUpit4N0HPiw3QhE0Qx4BWa64vF/R9pYilAD9RvlMQ+nGTy5HUdFKWnzarbrHfsXl ynxki5amI9AwkCE0xXyGK1Xiviw7wggHv5cDN1CSsp0sorYIqkHtBQGP3+ixJn9NlrRm 3xncFizj5OIiInux94ltQSp2k7hhDyO/R5mmP9QnZlIkxPSRx6SlppL7sntiYgVnpJjg zd992hyefvszfxEz5zylOp+qa5ESfdUwxBprMk7OtiwkkpxViOCjPOoRqDWL40Lcti9w iq1nFujDfyvkEMmbsIMx8XqMQoyj1ZxHGHZSUImWCt1tuk1naBAADLn/snWIpeotITR+ bXfg== X-Gm-Message-State: AOAM531vxatOFJej5dTesQAVIpbpG2nHqUQDXAwNP7eQWE7Jh4hcIg2Q ZTm9H7RYf3SfNhPElhhlbjsoXtbkb2Kr9UNna8otQA== X-Google-Smtp-Source: ABdhPJyz3c6xQ1PDAkdpsbzgIW9eyPKvm7DXleocWUj1zF+gPuuHerXodKn649c4GcxHHZnfgw+gvC9bO2SoXKVui+Q= X-Received: by 2002:a81:c54:: with SMTP id 81mr1609550ywm.464.1643954829599; Thu, 03 Feb 2022 22:07:09 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ori Idan Date: Fri, 4 Feb 2022 08:06:32 +0200 Message-ID: To: Adam Thornton Content-Type: multipart/alternative; boundary="000000000000a5387c05d72b0fb4" Subject: Re: [TUHS] ratfor vibe X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --000000000000a5387c05d72b0fb4 Content-Type: text/plain; charset="UTF-8" SPACE is 32 and NEWLINE is 10 is that the reason that space in ASCII is 32 As for EOF it is 0xFF which is not always -1, depending if your char is signed or unsigned. -- Ori Idan CEO Helicon Books http://www.heliconbooks.com On Thu, Feb 3, 2022 at 10:01 PM Adam Thornton wrote: > > > On Wed, Feb 2, 2022 at 9:01 PM Will Senn wrote: > >> >> For example, even in the tiny copy program example, from the introductory >> chapter, once you include the primitive getc and putc subroutines, there >> are 7 symbolic constants: MAXLINE, MAXCARD, NEWLINE, STDIN, STDOUT, EOF, >> SPACE and character, which is really an integer and gets replaced with >> integer by some mythical preprocessor (chapter 8). Anyhow, in the modern >> world, MAXLINE and MAXCARD don't really have meaning, but they can >> magically be treated as lines of a file, the rest do have meaning, but they >> don't evaluate to the same things in Fortran-land as in modern-land. STDIN >> is 5 and STDOUT is 6 (card reader and punch LUNs, again some magic that >> lets them be treated as terminal input and output), EOF is -1, SPACE is >> 32, NEWLINE is 10. >> >> Pretty sure that EOF is _still_ -1. SPACE and NEWLINE also look pretty >> familiar and their values haven't changed, although we might spell them a >> little differently these days. >> > --000000000000a5387c05d72b0fb4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
SPACE is 32 and NEWLINE is 10 is that the reason that= space in ASCII is 32
As for EOF it is 0xFF which is not always -= 1, depending if your char is signed or unsigned.

<= div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_signature= ">
--=C2=A0
Ori Idan CEO Helicon Books





On Thu, Feb 3, 2022 at 10:01 PM Adam Thornton <athornton@gmail.com> wrote:


On Wed, Feb 2, 2022 at 9:01 PM Will Senn <will.senn@gmail.com> wrot= e:
=20 =20 =20

For example, even in the tiny copy program example, from the introductory chapter, once you include the primitive getc and putc subroutines, there are 7 symbolic constants: MAXLINE, MAXCARD, NEWLINE, STDIN, STDOUT, EOF, SPACE and character, which is really an integer and gets replaced with integer by some mythical preprocessor (chapter 8). Anyhow, in the modern world, MAXLINE and MAXCARD don't really have meaning, but they can magically be treated as lines of a file, the rest do have meaning, but they don't evaluate to the same things in Fortran-land as in modern-land. STDIN is 5 and STDOUT is 6 (card reader and punch LUNs, again some magic that lets them be treated as terminal input and output),=C2=A0 EOF is -1, SPACE is 32, NEWLINE is 10.

=
Pretty sure that= EOF is _still_ -1.=C2=A0 SPACE and NEWLINE also look pretty familiar and t= heir values haven't changed, although we might spell them a little diff= erently these days.
--000000000000a5387c05d72b0fb4--