The ':-)' operator

Larry DeLuca larry at cci-bdc.UUCP
Thu Feb 21 23:51:17 AEST 1985


> In article <zinfande.334> berry at 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 at mit-mc.ARPA

This mind intentionally left blank.



More information about the Comp.lang.c mailing list