New assignment operator ->= ?

Wietse Z. Venema wietse at wzv.win.tue.nl
Sat Feb 17 22:14:50 AEST 1990


mayoff at walt.cc.utexas.edu (Rob "The" Mayoff) writes:

>So why not
>	while (*p->next)
>	  p ->= next;

Don't forget the .= operator. Unfortunately, such language features would 
prohibit other language perversions such as:

		a ^+= b <-> a ^= a += b <-> a = a ^ a + b
		p ->= q <-> p -= p >= q <-> p = p - p > q

(:-))



More information about the Comp.lang.c mailing list