I read thru the programming manuals as well as the discussion in this question , so at least I understand what IF(X - 0Y) ...
does. But what I can't find is any discussion of this conversion from character to numeric operation in the FOCAL manuals (1969 and 1972) I found online. Was it just assumed that programmers of that era knew what a PDP-X OS would do with that syntax?
New contributor
Carl Witthoft is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Add a comment
|
1 Answer
The conversion is nicely explained in DEC's 1970 FOCAL Programming Manual in section 2.12, page 2-12:
The following page brings some helpful examples:
There's always a helpful manual :))
-
12
-
2
-
And today we call this "comparing strings by hash values", with a really simple hash (and actually not bothering with the strings themselves).– dirktCommented Jun 30 at 6:46
-
And with 'E' being the most commonly used letter in English, this led to a lot of overflows when trying to process "text" in FOCAL! For example, what is the numerical value of "0OVERFLOW"? Commented 2 days ago
-