Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!inesc!jmsc From: jmsc@inesc.UUCP (Miguel Casteleiro) Newsgroups: comp.sys.amiga Subject: Re: Bug in Manx 3.6a c.lib Keywords: bug, compiler Message-ID: <809@inesc.UUCP> Date: 5 May 89 04:09:53 GMT References: <494@tolsun.oulu.fi> <102473@sun.Eng.Sun.COM> Organization: INESC - Inst. Eng. Sistemas e Computadores, LISBOA. PORTUGAL. Lines: 17 In article <102473@sun.Eng.Sun.COM>, page%rishathra@Sun.COM (Bob Page) writes: > nix@tolsun.UUCP (Tero Manninen) wrote: > >Have anybody found such a bug in Manx 3.6a that it leaves dos.library > >open when program compiled with cc have exited ? > > Depending on your viewpoint, it's not a bug. The only reason to close > dos.library is to decrement the open count .. [...] Thus closing > DOSBase doesn't accomplish anything except maybe peace of mind. [...] Not quite, it's a question of style and good programing education. You should close what you open, and free what you alloc (and don't relie on the operating system (or the C compiler) to do that for you). -- __ Miguel Casteleiro at __ /// INESC, Lisboa, Portugal. \\\/// Only UUCP: ...!mcvax!inesc!jmsc "Life is hard and then you die." \XX/ Amiga