X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Cesar Rabak Newsgroups: comp.os.msdos.djgpp Subject: Re: array indices [i][j] Date: Thu, 05 Feb 2004 11:06:23 -0200 Lines: 64 Message-ID: <40223FCF.3050401@acm.org> References: <3405-Wed04Feb2004202510+0200-eliz AT elta DOT co DOT il> <20040205031240 DOT 25284 DOT 00000313 AT mb-m16 DOT aol DOT com> NNTP-Posting-Host: 200.234.106.242 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 1075986392 32793562 I 200.234.106.242 ([39218]) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: pt-br, pt To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hans-Bernhard Broeker escreveu: > Sterten wrote: > > [snipped] >>that reminds me to Don Knuth's programs. > > [...] > >>because he uses an own,unusual language similar to C but with some >>special "macros". > > > I think you have not the slightest idea what you're talking about. > That "C with some special macros" you're talking about is actually > Knuth's own special programming tool "Web", which is actually not C at > all, but Pascal, and intermixed with TeX for internal documentation. > I'm affraid you as well, Hans, went too far on this comment. From the page referenced, in the link http://www-cs-faculty.stanford.edu/~knuth/cweb.html please read: . . . CWEB is a version of WEB for documenting C, C++, and Java programs. WEB was adapted to C by Silvio Levy in 1987, and since then both Knuth and Levy have revised and enhanced the system in many ways, notably to support C++ and ANSI C. Thus CWEB combines TeX with today's most widely used professional programming languages. If you are in the software industry and do not use CWEB but your competitors do, your competitors will soon overtake you---and you'll miss out on a lot of fun besides. More comments about CWEB can be found in Daniel Mall's website for Literate Programming. This book is the definitive user's guide and reference manual for the CWEB system. The CWEB software itself is freely available via anonymous ftp from labrea.stanford.edu, in directory ~ftp/pub/cweb. It consists of two programs: CTANGLE converts a source file foo.w to a compilable program file foo.c; CWEAVE converts a source file foo.w to a prettily-printable and cross-indexed document file foo.tex. Both CTANGLE and CWEAVE are stable, well-tested, and highly portable. They have been installed on a wide variety of computers and operating systems. . . . HTH -- Cesar Rabak