Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.glorb.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 16 Feb 2012 23:40:21 -0600 From: Nathan Subject: Re: Name space pollution in Art of Assembly Message-ID: <13eec64e-22a5-4598-b4d7-51fa76f1a2ad@bs8g2000vbb.googlegroups.com> Date: Thu, 16 Feb 2012 21:38:59 -0800 (PST) Organization: http://groups.google.com References: User-Agent: G2/1.0 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Newsgroups: comp.lang.asm.x86,comp.programming Approved: nathancbaker@nospicedham.gmail.com - comp.lang.asm.x86 moderation team. Lines: 43 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-TGZlmpfoJgCu4051MVaHHnw4XxAFaZvkQXZA95c2ZWscaR0cdCEC5AH282M94sG5Wpx5F4mXhxrm1m0!rnaOblBXyPrjv2UjGfHJN0K0hO+9rZWYaNOQmttfUlzOzhp1WCtg5PFeqFT6qWIr3nUAl07nj+Z4!oR+x9FYeomRKmZ4M/Pl5+Ql8lA== X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2804 Xref: x330-a1.tempe.blueboxinc.net comp.lang.asm.x86:1868 comp.programming:1329 On Feb 16, 3:47=A0pm, Joseph wrote: > I hope it's okay to ask a question about a specific book in this group It certainly is okay. > (and a book about HLA at that), That is okay too. > but I'm working my way through Randall > Hyde's The Art of Assembly Language Programming, and I have an issue with > chapter 9.9 "Name Space Pollution" (http://homepage.mac.com/randyhyde/ > webster.cs.ucr.edu/www.artofasm.com/Linux/HTML/ > ManagingLargePrograms2.html). It says: > > =A0"conflicts will only occur between [...] external symbols and [...] > global symbols," > > and > > =A0"when you declare external names within a name space, [...] HLA uses > only the function name [...] as the external name. This creates a name > space pollution problem in the external name space [therefore] use the > extended form of the EXTERNAL directive to explicitly supply an external > name for all external identifiers appearing in a NAMESPACE declaration." > > So a symbol cannot conflict if it is not external, and an external symbol > must use a unique name; but then what purpose is the name space? Your question is not about any specific book, nor is it specific to HLA. You will find your answer here: http://en.wikipedia.org/wiki/Namespace http://en.wikipedia.org/wiki/Namespace_%28computer_science%29 {news:comp.programming added} Nathan. -- About CLAX - http://clax.inspiretomorrow.net/ CLAX Policy - http://clax.inspiretomorrow.net/clax86.html CLAX FAQS - http://www.fysnet.net/faq/index.htm