From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public From: Jason.Ozolins@anu.edu.au Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/03 Message-ID: <611r14$4i6$1@clarion.carno.net.au>#1/1 X-Deja-AN: 278559013 References: <3431A2DB.4273@EasyInternet.net> <60ui2q$33a$1@cdn-news.telecom.com.au> <60ujk7$i58$1@lyra.csx.cam.ac.uk> <3432F896.7FD2@HousemarqueREM.fi> <3433AAC0.10C4@NOSPAMarm.com> Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec In <3433AAC0.10C4@NOSPAMarm.com> Wilco Dijkstra writes: >It's my belief that almost all aliasing is avoidable at low cost during >compilation. For example most aliasing is due to function calls. With >global >aliasing analysis the complete set of aliases can be calculated. Of >course >a good language which avoids most of the aliasing problems (eg. the ADA >parameter >passing mechanism) would help! Hmmm... I think Pascal had the right approach when it came to reference parameters: the effects of passing the same variable into a function via more than one VAR parameter were "undefined", which left the language implementor more scope for optimization. The mechanism was perhaps less important than the simple fact that there was no guarantee that reference parameters would work correctly in the presence of aliasing, so you didn't do it. Conclusion: C/C++ would be nicer languages if they had much more undefined behaviour. :-) :-) (Not having any C++ standards around, I ought to ask: Are C++ references guaranteed to work in the presence of aliasing?) _____________________________________________________________________________ Jason Ozolins (Jason.Ozolins@anu.edu.au) | Put your hands over your eyes. Teaching and Learning Technology Support Unit| Jump out of the plane. Australian National University | There is no pilot. My opinions, not ANU's. | You are not alone. --