<div dir="auto"><div>Thanks Jose!<br><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, Jun 21, 2026, 15:04 Jose E. Marchesi <<a href="mailto:jemarch@gnu.org">jemarch@gnu.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> Good day everyone,<br>
><br>
> After 10 days away from almost everything to do with computers in order to<br>
> concentrate on Important Stuff (like beaches), I'm back prodding van<br>
> Vliet's transput.<br>
><br>
> The open, establish and create procedures will fail with a non-zero return<br>
> code if they cannot establish the linkage between File, Channel, Book and<br>
> the operating system file. However this can leave the nonpublic Book<br>
> variable in an uninitialized state.<br>
><br>
> Of course, I can initialize the Book variable to some pattern that I can<br>
> later interpret as meaning no linkage was created; and I can check wherever<br>
> that Book variable is used to make sure it has a valid linkage.<br>
><br>
> But I don't believe there is a way to detect uninitialized variables other<br>
> than this.<br>
><br>
> Does anyone have any suggestions? Thanks in advance!<br>
<br>
I think there is no way.<br>
<br>
In strict Algol 68 the value actually held by uninitialized variables is<br>
undefined.<br>
<br>
In GNU Algol 68 uninitialized variables all have a predictable value: 0<br>
for int, 0.0 for real, " " for char, etc.<br>
<br>
But that will not really help to detect uninitialized variables.<br>
<br>
I would look to declare a no_book identifier with some distinguishable<br>
value ascribed to it, then get the books initialized to it, then check<br>
for it before accesses. Alternatively, you could add an additional<br>
book_initialized boolean..<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Ok my Book mode contains a field to hold the file descriptor associates with the system file, so I will initialize it to -1.</div><div dir="auto"><br></div><div dir="auto">I will need to conduct a similar investigation with mode File.</div></div>