ed298-ak@violet.berkeley.edu (Edouard Lagache) (10/12/87)
The FORTRAN standard on passing expressions has been quoted a number of times on the net. To paraphrase, expressions can be passed only if they are not changed in the subprogram. However, all the compiler examples I have seen haven't checked if the program in fact satisfied the standard. Do such compilers exist, and if not is the standard practically enforceable? Edouard Lagache lagache@violet.berkeley.edu P.S. No flames please! I am just curious about this matter.
dik@cwi.nl (Dik T. Winter) (10/14/87)
In article <5401@jade.BERKELEY.EDU> lagache@violet.berkeley.edu (Edouard Lagache) writes: > > The FORTRAN standard on passing expressions has been quoted > a number of times on the net. To paraphrase, expressions > can be passed only if they are not changed in the subprogram. > However, all the compiler examples I have seen haven't checked if the > program in fact satisfied the standard. > > Do such compilers exist, and if not is the standard practically > enforceable? > I do not know whether such compilers exist, but of course the standard is not practically enforceable. However, such situations exist in every language I know, but other languages call it undefined. -- dik t. winter, cwi, amsterdam, nederland INTERNET : dik@cwi.nl BITNET/EARN: dik@mcvax