Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!uunet!igor!rutabaga!jls From: jls@rutabaga.Rational.COM (Jim Showalter) Newsgroups: comp.object Subject: Re: Documenting OO Systems Keywords: operators Message-ID: Date: 29 Mar 91 03:52:05 GMT References: <299@orbit.gtephx.UUCP> <1991Mar25.145441.1@happy.colorado.edu> <20106@alice.att.com> <3481@engadm3.csd.mot.com> <1991Mar26.191259.14470@i88.isc.com> <4693@osc.COM> Sender: news@Rational.COM Lines: 21 >One thing i like about C is that when you type something you know what it's >going to do. Okay, what is this going to do?: int j (int y, int m, int d) { int m_d[12] = {31,28,31,30,31,30,31,31,30,31,30,31}; if (m<1 || m>12) return 0; int l = !(y%4) && y&400; if (d<1 || d>(m_d[m-1] + (m==2 && y))) return 0; int dd = 0; for (int i=0; i2 && y); } You should be able to tell me right off the bat--you think English sucks as a programming language, and this is DEFINITELY not written in English. -- ***** DISCLAIMER: The opinions expressed herein are my own, except in the realm of software engineering, in which case I've borrowed them from incredibly smart people.