Historical variable place

S

Sensei

Hi. I was wondering about the first C.

Once, I knew that all the variables were to be as the first part of a
block of code.

Anyone can point me to some historical steps of C (with a timeline if
possible...)?
 
A

Artie Gold

Sensei said:
Hi. I was wondering about the first C.

Once, I knew that all the variables were to be as the first part of a
block of code.

Anyone can point me to some historical steps of C (with a timeline if
possible...)?

GIYF! (Try 'history of C language')

HTH,
--ag
 
S

Sensei

Artie said:
GIYF! (Try 'history of C language')

Sorry, but I couldn't find what I wanted... that's why I posted here :)

I'm interested in the place where variables were meant to be in early C,
and of course, its relation with assembly code...
 
C

Chris Dollin

Sensei said:
Sorry, but I couldn't find what I wanted... that's why I posted here :)

I'm interested in the place where variables were meant to be in early C,
and of course, its relation with assembly code...

C grew from B which grew from BCPL; any relationship with assembly
seems rather indirect.

BCPL allows variable declarations at the head of blocks (onlyish),
as C90 does.

BCPL also has mutually recursive definitions without need for
any kind of `forward` declaration, as C does not.

[And it has the "global vector", which fortunately didn't survive
the journey.]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top