Path: utzoo!attcan!uunet!samsung!sdd.hp.com!ucsd!hub.ucsb.edu!ucsbuxa!3003jalp From: 3003jalp@ucsbuxa.ucsb.edu (Applied Magnetics) Newsgroups: comp.lang.fortran Subject: Re: Fun with pointers (long-ish) Message-ID: <6264@hub.ucsb.edu> Date: 11 Sep 90 17:47:27 GMT References: <6243@hub.ucsb.edu> <124.26e7c6dc@mccall.com> Sender: news@hub.ucsb.edu Distribution: comp Lines: 16 (Did my post show up a second time without a header? Sorry) In a reply to my "pointers" post, Terry Poot suggests using a memory allocator to get rid of static arrays. I am indeed using a memory allocator, but that's another story. My question is: can you overrun the declared bounds of an array and get away with it? The standard says no. The effects of an equivalence are undefined once you step out of bounds. Stephen Walton says that Microsoft Fortran on MS-DOS will see my link(0:3) or Terry's IMEM(1) and decide to use 16-bit arithmetic to compute offsets into such small arrays. Trouble City. That's the sort of thing I am after. --PA