Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site cci-bdc.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!harvard!godot!mit-eddie!cybvax0!cci-bdc!larry From: larry@cci-bdc.UUCP (Larry DeLuca) Newsgroups: net.lang.c Subject: Re: The ':-)' operator Message-ID: <154@cci-bdc.UUCP> Date: Thu, 21-Feb-85 08:51:17 EST Article-I.D.: cci-bdc.154 Posted: Thu Feb 21 08:51:17 1985 Date-Received: Sun, 24-Feb-85 01:38:29 EST References: <10983@watmath.UUCP> <21000020@uiucuxc.UUCP> <354@snow.UUCP> <141@rtech.ARPA> <261@oliveb.UUCP> Organization: Computer Consoles, Inc., Cambridge, MA Lines: 38 > In article berry@zinfandel.UUCP (Berry Kercheval) writes: > | I would like to see the operator ':-)'. I'm taking bets on what > | it will mean (:-) > > I would use it as a unary reverse assertation, so that this: > > (a == 0) :-); /* 'a' should not be zero here, barf if it is */ > > would be expanded to the equivalent of: > > assert(a != 0); /* 'a' should not be zero here, barf if it is */ > > > 44 61 76 65 32 4C 6F 6E 67 *** REPLACE THIS LINE WITH YOUR :-) *** i would think that it would mean to gently 'nudge' the expression if necessary to make the condition true (mostly to prevent potentially big screwups from staying small ones)... for example: (a == 0) :-); /* if 'a' is NOT zero, well, make it zero :-) */ definition: :-) -- the "it damn well better be" operator larry... -- uucp: ..mit-eddie!cybvax0!cci-bdc!larry arpa: henrik@mit-mc.ARPA This mind intentionally left blank.