[net.lang.c] The ':-)' operator

long@oliveb.UUCP (Dave Long) (02/17/85)

In article <zinfande.334> 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

larry@cci-bdc.UUCP (Larry DeLuca) (02/21/85)

> In article <zinfande.334> 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.

boris@mit-athena.UUCP (Boris N Goldowsky) (02/24/85)

> for example:
> 	(a == 0) :-);  /* if 'a' is NOT zero, well, make it zero :-) */
> 					larry...

I would think that would read
	if '0' is NOT a, then MAKE 0 = a. 

boris g.

larry@cci-bdc.UUCP (Larry DeLuca) (02/28/85)

> > for example:
> > 	(a == 0) :-);  /* if 'a' is NOT zero, well, make it zero :-) */
> > 					larry...
> 
> I would think that would read
> 	if '0' is NOT a, then MAKE 0 = a. 
> 
> boris g.

*** REPLACE THIS LINE WITH STRONG TYPING ***

that would sell really well to the military...in fact, one of my office-
mates comments, "That's the ForTran solution."...

					larry...


-- 
uucp:  ..mit-eddie!cybvax0!cci-bdc!larry

arpa:  henrik@mit-mc.ARPA

This mind intentionally left blank.

jsdy@hadron.UUCP (Joseph S. D. Yao) (03/13/85)

> I would like to see the operator ':-)'.  I'm taking bets on what
> it will mean (:-)

I think it means not to take this operation too seriously -- if it
would cause a fault, well, ignore it.  Example:
	i = 0;
	j = k/i :-) ;
Now, what does our oriental ;-) operator do?

;-)

Joe Yao		hadron!jsdy@seismo.{ARPA,UUCP}

ron@brl-tgr.ARPA (Ron Natalie <ron>) (03/14/85)

> > I would like to see the operator ':-)'.  I'm taking bets on what
> > it will mean (:-)
> 
> I think it means not to take this operation too seriously -- if it
> would cause a fault, well, ignore it.  Example:
> 	i = 0;
> 	j = k/i :-) ;
> Now, what does our oriental ;-) operator do?
> 
> ;-)
> 
I don't know, but :-? is a binary operator meaning "has some relation to."

-Ron

bill@persci.UUCP (03/17/85)

> > I would like to see the operator ':-)'.  I'm taking bets on what
> > it will mean (:-)
> 
> I think it means not to take this operation too seriously -- if it
> would cause a fault, well, ignore it.  Example:
> 	i = 0;
> 	j = k/i :-) ;
> Now, what does our oriental ;-) operator do?
> Joe Yao		hadron!jsdy@seismo.{ARPA,UUCP}

I don't know. It's inscrutable. (-:  :-)
-- 
Old Bagpipers never die, they just blow away...