From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ad988eb0a9545c86 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-17 16:01:06 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!newsfeed.berkeley.edu!ucberkeley!pln-w!extra.newsguy.com!lotsanews.com!peernews.mcc.ac.uk!daresbury!server6.netnews.ja.net!server4.netnews.ja.net!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada References: <9b46dr$cd8$1@taliesin.netcom.net.uk> <9b6jtu$4is$2@taliesin.netcom.net.uk> <9b6m27$68e$1@taliesin.netcom.net.uk> <0JBB6.10484$FD1.1197250@news6-win.server.ntlworld.com> <9b7tce$laf$2@taliesin.netcom.net.uk> <3ADC4320.7ACA3DEC@averstar.com> <9bhoup$h9k$1@taliesin.netcom.net.uk> <3ADC7A79.8E853905@mindspring.com> <9bi4g4$97m$1@nh.pace.co.uk> Subject: Re: Problem trying to implement generics. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Tue, 17 Apr 2001 22:17:33 +0100 NNTP-Posting-Host: 62.252.145.19 X-Complaints-To: abuse@ntlworld.com X-Trace: news2-win.server.ntlworld.com 987542229 62.252.145.19 (Tue, 17 Apr 2001 22:17:09 BST) NNTP-Posting-Date: Tue, 17 Apr 2001 22:17:09 BST Organization: ntlworld News Service Xref: supernews.google.com comp.lang.ada:6960 Date: 2001-04-17T22:17:33+01:00 List-Id: > The "+=", et alia, were basically invented by people who couldn't type. Sorry but that's not correct. I used to have a similar opinion, but i was corrected by someone who, like me, dislikes C. Anyways "+=" and "*=" are deliberately written like this because of "structured assembly" which is what C is meant to be. Consider the following assembly (intel X86 style syntax) , ADD A, B ; add B to A it's written in C like this A += B; (maybe B+=A; I ain't used it myself so i don't know} That's why it was designed this way and it was chosen by K & R delib. The language was invented to write OS's. Not a very good attempt if you ask me, it's left the world with buggy programs that need ton's of comments but usually don't have because C programmers seem think it's clever not to include them. Most of my Ada code(and much of the Ada code out there) only needs "what it does" in the spec with only the smallest amount of "how it does it" in the body. I also find that a lot more effort is needed to explain C code in intro texts than Ada (I've got a few 100 to 400 page books for Ada that cover quite a bit, but a 1000+ page book on C that doesn't teach very much except "in C if a function screws up return a non-zero integer") [End of useless information...] Chris.