On Wed, 14 Mar 2007, Peter St. John wrote:

> and Ken wrote B in the late 60's (to extend your "gleam in the eye"
> metaphor beyond bearability, I'd say that Dennis carred the project to
> term). Nice thing about B is that the formal definition fits in 2 pages.

B, I remember it well and with fondness.  I was one of the folks who was 
involved in hacking on AberMUD (and its predecessor BBS HoneyBoard) in B at 
the University of Wales, Aberystwyth on their Honeywell L66 back in 87/88..

It had both the variable types you could ever need, namely auto and extern.

FYI.. (from the Users' Reference to B via Wikipedia):

/* The following function will print a non-negative number, n, to
  the base b, where 2<=b<=10,  This routine uses the fact that
  in the ASCII character set, the digits 0 to 9 have sequential
  code values.  */

printn(n,b) {
        extrn putchar;
        auto a;

        if(a=n/b) /* assignment, not test for equality */
                printn(a, b); /* recursive */
        putchar(n%b + '0');
}

Takes me right back..

-- 
 Christopher Samuel - (03)9925 4751 - VPAC Deputy Systems Manager
 Victorian Partnership for Advanced Computing http://www.vpac.org/
 Bldg 91, 110 Victoria Street, Carlton South, VIC 3053, Australia

Attachment: pgpMsRdEQC3S4.pgp
Description: PGP signature

_______________________________________________
Beowulf mailing list, Beowulf@beowulf.org
To change your subscription (digest mode or unsubscribe) visit 
http://www.beowulf.org/mailman/listinfo/beowulf

Reply via email to