Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!mcsun!hp4nl!let.rug.nl!eoo From: eoo@let.rug.nl (Eize Oosting) Newsgroups: comp.lang.c Subject: Re: missing ->= operator Message-ID: <1669@gufalet.let.rug.nl> Date: 6 May 91 10:26:43 GMT References: <9104291641.AA00534@dutiaa.tudelft.nl> <1667@gufalet.let.rug.nl> Organization: Faculty of Arts, Groningen, The Netherlands Lines: 34 In article clary@iastate.edu (Clary Jeffrey Scott) writes: >In <1667@gufalet.let.rug.nl> eoo@let.rug.nl (Eize Oosting) writes: > >>In article <9104291641.AA00534@dutiaa.tudelft.nl> schuller@DUTIAA.TUDELFT.NL (Schuller Schuller Oijen) writes: > >[explanation of ->= operator deleted] > >>>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@dutiad.tudelft.nl > >>It sounds wonderfull, but it would ask for an Object Oriented style, and >>C is just not OO. Maybe this would be something for C++. > >Please elaborate on why ptr ->= next >is "object oriented" than x += 5 > It's not the left part of the assignment which would be OO, but it's the right part. The field 'next' is completely unknown as an legal value. But you can read all of this in article 19705 (I believe). There someone explains exactly why 'ptr ->= next' cannot do and 'x += 5' can. Sorry guys. /\__________/\ /\___________________________________________________/\ / \ / \ | Letteren- | Marvin Minsky once defined Artificial Intelligence as: | | Faculteit | '... the science of making machines do things that | | R.U. Groningen | would require intelligence if done by men'. | | The Netherlands| | | | Does this include formatting a floppy? | | eoo@let.rug.nl | Eize Oosting | \ __________ / \ ___________________________________________________ / \/ \/ \/ \/