Quote #519
My favorite PL/I type conversion example:
Declare A, B, and C as three-character strings. B='123';C='456';A=B+C;
What does A contain? PL/I automatically coerces strings to decimal numbers
in arithmetic context, so it correctly converts B and C and adds them to
get 579. Then it converts it back to a string of a default length,
which is ' 579'. Then it truncates the string from the right, so the
result is ' '. Oops. -John
My favorite PL/I type conversion example:
Declare A, B, and C as three-character strings. B='123';C='456';A=B+C;
What does A contain? PL/I automatically coerces strings to decimal numbers
in arithmetic context, so it correctly converts B and C and adds them to
get 579. Then it converts it back to a string of a default length,
which is ' 579'. Then it truncates the string from the right, so the
result is ' '. Oops. -John
Related:
- BCPL -> B -> C !!!
No wonder C is so cryptic... - Quote #434
((lambda(a) (a a((lambda(a)(lambda()(set!
a(+ a 1))a))1)))(lambda(a c) ((lambda(b) (newline)(write... - A, B, ...
(Long time, no... - Quote #82
From: wayne@backbone.uucp (Wayne Schlitt)
[.
] The Average Person's Axioms of First Order Predicate... - If A = B and B = C, then A = C,
except where void or prohibited by law... - C:\> COPY A:\MOTHER.DNA+B:\FATHER.DNA C
\BABY.EXE... - C)ontrol
(A)lt... - Bypasses are devices that allow some people to dash from point A to
point B very fast while other people dash from point B to point A very
fast.
People living at point C, being a point directly in...
