Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: jamin1@psu.edu (Jamin Frederick) Newsgroups: scee.yaroze.beginners Subject: Re: static and non stativ viods Date: Mon, 08 Jun 1998 23:52:38 GMT Organization: SCEA News Server Lines: 30 Message-ID: <357c78dd.24235428@news.scea.sony.com> References: <357A494B.2A9A@virgin.net> <357BA719.952E2157@scee.sony.co.uk> Reply-To: jamin1@psu.edu NNTP-Posting-Host: MAXWELL.hq.ensco.com X-Newsreader: Forte Free Agent 1.11/32.235 On Mon, 08 Jun 1998 09:55:53 +0100, James Russell wrote: >peter black wrote: >> >> can anyone tell me the differnce between >> static void function() >> and >> viod function() > >A function (or variable) defined with 'static' is not exported, which >means that functions in other object files can't see it, and >thus they can't use it. Only variables/functions within the file can >use that variable/function. It's mainly used to prevent an object's >function/variable definitions from conflicting with another object's >function/variable definitions. > Yea, the less globally accessible stuff you've got hanging out of your file, the more modularized your code is -- all the static stuff stays nice and "watertight". Jamin >> and why the latter seems to create rubbish in >> codewarrior debbuger stack window > >Um... pass.