Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!ucsd!rutgers!bellcore!tness7!tness1!sugar!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.lang.c Subject: Re: "Numerical Recipes in C" is nonportable code Message-ID: <1429@ficc.uu.net> Date: 8 Sep 88 01:52:09 GMT References: <664@lindy.Stanford.EDU> <6758@megaron.arizona.edu> <718@gtx.com> <640@drilex.UUCP> Organization: SCADA Lines: 20 In article <640@drilex.UUCP>, dricej@drilex.UUCP (Craig Jackson) writes: > * Note that putting the protection in the compiler was also an idea > of Per Brinch-Hansen's in the 1970s, with Concurrent Pascal. Burroughs > had been doing it for many years, even then. What's to stop you from doing the following: Generate code in an array. Jump to the beginning of the array. * Now you've blown the protection. You can do anything. I hope this isn't a multiuser machine... * this may involve such things as passing a pointer to an array to a function that's declared that argument as a pointer to a function, or even by writing the array out as a file and executing it... I can't see how you could write a valid 'C' compiler that wouldn't let you violate this protection. -- Peter da Silva `-_-' Ferranti International Controls Corporation. "Have you hugged U your wolf today?" peter@ficc.uu.net