missing ->= operator
Schuller Schuller Oijen
schuller at DUTIAA.TUDELFT.NL
Tue Apr 30 02:41:40 AEST 1991
Hi all,
recently I've been doing a lot of C pointer programming and I came upon
a missing feature in C. Suppose you have this struct called mygod :
typedef struct mygod
{
int value;
struct mygod *next;
} mygod_struct
What you do quite often is : mygodptr = mygodptr->next;
Now C has all these wonderful operators : a += 7, g &= 0xf, etc, etc.
But the ->= operator is missing! You cannot do mygodptr ->= next; !
All of you who want to fill this gap, please react. Flames to /dev/null.
Bye! Hildo Biersma, schuller at dutiad.tudelft.nl
More information about the Comp.lang.c
mailing list