Xref: utzoo comp.lang.c:12260 comp.arch:6208 Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!apple!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!ukc!eagle!icdoc!tgould!iwm From: iwm@asun3.ic.ac.uk (Ian Moor) Newsgroups: comp.lang.c,comp.arch Subject: Re: one large array in Pascal Message-ID: Date: 30 Aug 88 08:57:14 GMT References: <5262@june.cs.washington.edu> <260@thor.wright.EDU> <479@m3.mfci.UUCP> <36174@yale-celray.yale.UUCP> <1268@mcgill-vision.UUCP> <3868@psuvax1.cs.psu.edu> <4998@claris.UUCP> Sender: news@doc.ic.ac.uk Organization: Dept. of Computing, Imperial College Lines: 11 Posting-Front-End: GNU Emacs 18.45.3 of Fri Jun 26 1987 on asun3 (berkeley-unix) >I know of at least one which isn't: TeX. > >Why did Knuth do it this way? I can only guess; I would guess that >it's for some portability reason I am not aware of. At least one early Pascal compiler did not implement `dispose', instead there were `mark' and `free' which treated the heap like a stack, `free' released all the heap that was claimed since the last mark. If your program doesn't use store in a LIFO way then you had to do your own allocation.