Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #1329
| From | Nathan <nathancbaker@gmail.com> |
|---|---|
| Subject | Re: Name space pollution in Art of Assembly |
| Message-ID | <13eec64e-22a5-4598-b4d7-51fa76f1a2ad@bs8g2000vbb.googlegroups.com> (permalink) |
| Date | 2012-02-16 21:38 -0800 |
| Organization | http://groups.google.com |
| References | <HXd%q.479421$lb1.63898@news.usenetserver.com> |
| Newsgroups | comp.lang.asm.x86, comp.programming |
Cross-posted to 2 groups.
On Feb 16, 3:47 pm, Joseph <f...@nospicedham.none.com> 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:
>
> "conflicts will only occur between [...] external symbols and [...]
> global symbols,"
>
> and
>
> "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
Back to comp.programming | Previous | Next — Next in thread | Find similar
Re: Name space pollution in Art of Assembly Nathan <nathancbaker@gmail.com> - 2012-02-16 21:38 -0800 Re: Name space pollution in Art of Assembly Joseph <fake@nospicedham.none.com> - 2012-02-17 12:40 +0000
csiph-web