| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | ambiguity |
23 Jun 96 20:23, andrew clarke wrote to Paul Edwards: >> Going x=*y; >> is ambiguous because there used to be a meaning to that of >> x *= y; >> I think. > That gnu indent error has always puzzled me. Certainly the code looks From "The IBM PC Programmer's Guide To C" by Matthew Probert (CGUIDE3.ZIP, hatched into the PDNCEE file distribution echo recently): "Differences Between the Various Versions of C The original C (prior to the definitive book by K&R) defined the combination assignment operators (eg: +=, *=, etc.) backwards (ie: they were written =+, =*, etc.). This caused terrible confusion when a statement such as x=-y; was compiled - it could have meant x = x - y; or x = (-y); Ritchie soon spotted this ambiguity and changed the language to have these operators written in the now-familiar manner (+=, *=, etc.)." --- Msged/2 3.40ac alpha 2* Origin: Blizzard of Ozz, Melbourne, Australia (3:635/727.4{at}fidonet) SEEN-BY: 50/99 620/243 623/630 632/349 635/503 544 727 728 711/401 409 410 SEEN-BY: 711/413 430 808 809 932 934 712/515 713/888 714/906 800/1 @PATH: 635/727 544 50/99 711/808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.