[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | The Joy of Lex |
Notice: | A Notes File even your grammar could love |
Moderator: | THEBAY::SYSTEM |
|
Created: | Fri Feb 28 1986 |
Last Modified: | Mon Jun 02 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 1192 |
Total number of notes: | 42769 |
445.0. "Literal numbers" by DELNI::CANTOR (Dave C.) Thu Nov 26 1987 20:23
When I learned algebra, way back in junior high school, a number
whose value was represented by a letter was called a 'literal
number.' Thus, the equation
y = x + 3
has two literal numbers; _viz._, x and y. The numeral '3'
is also a number, of course, but it is not a literal number.
With the advent of computer programming languages, a symbolic
string whose form implied its value was called a literal, or
a literal string. In COBOL, for example, there are numeric
literals and non-numeric literals. The COBOL statement
COMPUTE Y = X + 3
contains a numeric literal.
I believe that the '3' in the COBOL statement is properly called
a numeric literal (short for 'numeric literal string'?), but
I've recently heard it referred to as a literal number.
Another sad case of a precise term losing its precision by
being used to denote something entirely different, in this
case, the "opposite" of its original meaning.
sigh
Dave C.
T.R | Title | User | Personal Name | Date | Lines |
---|
445.1 | manifest constant? | COMICS::DEMORGAN | Richard De Morgan, UK CSC/CS | Fri Nov 27 1987 09:59 | 4 |
| Perhaps you should raise it in the TLE::LANGUAGES notes file. However,
terminology varies from one language to another. I seem to recall
that "manifest constant" was an in-vogue term in the UK some years
ago.
|
445.2 | Constantly manifest ... | CHIC::BELL | David Bell, Service Technology @VBO | Fri Nov 27 1987 15:05 | 1 |
| Manifest constants are alive and well in C programs, at least.
|
445.3 | shades of BCPL | COMICS::DEMORGAN | Richard De Morgan, UK CSC/CS | Fri Nov 27 1987 16:13 | 1 |
| That's because it's derived from BCPL!
|