Click here to Skip to main content
15,891,136 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Old age shows its mark... Pin
obermd1-Feb-19 8:27
obermd1-Feb-19 8:27 
GeneralRe: Old age shows its mark... Pin
JohnnyCee1-Feb-19 11:44
JohnnyCee1-Feb-19 11:44 
GeneralRe: Old age shows its mark... Pin
jschell2-Feb-19 7:06
jschell2-Feb-19 7:06 
GeneralRe: Old age shows its mark... Pin
C. David Barrineau4-Feb-19 6:23
C. David Barrineau4-Feb-19 6:23 
GeneralRe: Old age shows its mark... Pin
OriginalGriff31-Jan-19 10:50
mveOriginalGriff31-Jan-19 10:50 
GeneralRe: Old age shows its mark... Pin
stoneyowl231-Jan-19 11:12
stoneyowl231-Jan-19 11:12 
GeneralRe: Old age shows its mark... Pin
BryanFazekas1-Feb-19 1:14
BryanFazekas1-Feb-19 1:14 
GeneralRe: Old age shows its mark... Pin
OriginalGriff1-Feb-19 1:38
mveOriginalGriff1-Feb-19 1:38 
But it started in FORTRAN which had implicit typing based on the first letter of the variable name: I to N inclusive were integers, everything else were reals. With no enforced declaration, it became a convention that I, J, K were integer values used in loop guards.

C always had compulsory variable declaration, which made typing by variable name irrelevant - and got rid of a lot of errors: NASA "lost" a probe because someone mistyped a comma.
What they meant to type:
DO 15 I = 1,100
A loop to Label 15, integer I runs between 1 and 100 inclusive.
What was typed:
DO 15 I = 1.100
Because FORTRAN ignored spaces outside strings, this was seen by the compiler as:
DO15I = 1.100

which is a perfectly valid assignment to a brand new variable called DO15I. Since there is no need to declare a variable, the "D" makes it a real variable, and that's completely legal (if rather useless)
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!

GeneralRe: Old age shows its mark... Pin
BryanFazekas1-Feb-19 1:51
BryanFazekas1-Feb-19 1:51 
GeneralRe: Old age shows its mark... Pin
kalberts1-Feb-19 1:26
kalberts1-Feb-19 1:26 
GeneralRe: Old age shows its mark... Pin
OriginalGriff1-Feb-19 1:44
mveOriginalGriff1-Feb-19 1:44 
GeneralRe: Old age shows its mark... Pin
TNCaver1-Feb-19 5:15
TNCaver1-Feb-19 5:15 
GeneralRe: Old age shows its mark... Pin
OriginalGriff1-Feb-19 5:25
mveOriginalGriff1-Feb-19 5:25 
GeneralRe: Old age shows its mark... Pin
TNCaver1-Feb-19 5:28
TNCaver1-Feb-19 5:28 
GeneralRe: Old age shows its mark... Pin
OriginalGriff1-Feb-19 5:41
mveOriginalGriff1-Feb-19 5:41 
GeneralRe: Old age shows its mark... Pin
TNCaver1-Feb-19 7:08
TNCaver1-Feb-19 7:08 
GeneralRe: Old age shows its mark... Pin
Mycroft Holmes31-Jan-19 11:18
professionalMycroft Holmes31-Jan-19 11:18 
GeneralRe: Old age shows its mark... Pin
DerekT-P1-Feb-19 0:41
professionalDerekT-P1-Feb-19 0:41 
GeneralRe: Old age shows its mark... Pin
kalberts1-Feb-19 2:11
kalberts1-Feb-19 2:11 
GeneralRe: Old age shows its mark... Pin
M!chael..Luna1-Feb-19 6:32
M!chael..Luna1-Feb-19 6:32 
GeneralRe: Old age shows its mark... Pin
j snooze31-Jan-19 11:25
j snooze31-Jan-19 11:25 
GeneralRe: Old age shows its mark... Pin
Mark_Wallace1-Feb-19 2:03
Mark_Wallace1-Feb-19 2:03 
GeneralRe: Old age shows its mark... Pin
Kornfeld Eliyahu Peter31-Jan-19 11:26
professionalKornfeld Eliyahu Peter31-Jan-19 11:26 
GeneralRe: Old age shows its mark... Pin
CPallini31-Jan-19 11:37
mveCPallini31-Jan-19 11:37 
GeneralRe: Old age shows its mark... Pin
kmoorevs31-Jan-19 11:49
kmoorevs31-Jan-19 11:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.