[Tutor] breeds of Python .....

Alan Gauld alan.gauld at btinternet.com
Sun Apr 1 17:57:20 CEST 2012


On 01/04/12 16:34, Barry Drake wrote:
> On 01/04/12 15:26, Alan Gauld wrote:
>> Actually the standardization of C sparked huge debates in the early
>> 90's. There were lots of minor changes and one big style change that
>> really polarised opinions. In traditional C you defined a functions
>> parameters like
>>
>> int foo()
>> int a;
>> float b;
>> { /* body here */ }

Oops, a slight mistake  there it should be:
int foo(a,b)
int a;
float b;
{ /* body here */ }

> I started with c in the 1980s using Mix Power C under Microsoft DOS 3.5.

I still have my Mix C compiler and manual (It runs under dosemu in Linux 
:-), but mine was not "Power C"... and it came in dual CP/M
and MS DOS versions (I had a CP/M Computer too at the time). So I'm
guessing Power C was their ANSI version. I used it for years because I 
could carry the whole thing, including IDE, on a single 720K floppy disk 
- remember them! :-) Very handy for writing a quick ad-hoc tool
on a customers site. Exactly the kind of thing  I use python for nowadays!

> different from the K&R specs. Interesting!

Other differences included the introduction of
const for constants, the void type, and the // style line comment.
A lot of previously undefined behaviors became defined too. And the 
library was expanded beyond all recognition, bringing in lots of 
features that had been implementation dependant into the standard.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list