Re: Symbol tables and scopes

Dave Thompson <david.thompson1@worldnet.att.net>
14 Feb 2006 10:20:20 -0500

          From comp.compilers

Related articles
[8 earlier articles]
Re: Symbol tables and scopes Peter_Flass@Yahoo.com (Peter Flass) (2006-02-07)
Re: Symbol tables and scopes alexc@TheWorld.com (Alex Colvin) (2006-02-11)
Re: Symbol tables and scopes cfc@shell01.TheWorld.com (Chris F Clark) (2006-02-11)
Re: Symbol tables and scopes cbarron413@adelphia.net (Carl Barron) (2006-02-12)
Re: Symbol tables and scopes DrDiettrich@compuserve.de (Hans-Peter Diettrich) (2006-02-14)
Re: Symbol tables and scopes DrDiettrich@compuserve.de (Hans-Peter Diettrich) (2006-02-14)
Re: Symbol tables and scopes david.thompson1@worldnet.att.net (Dave Thompson) (2006-02-14)
Re: Symbol tables and scopes alexc@TheWorld.com (Alex Colvin) (2006-02-14)
Re: Symbol tables and scopes nathan.moore@cox.net (Nathan Moore) (2006-02-17)
Re: Symbol tables and scopes alexc@TheWorld.com (Alex Colvin) (2006-02-17)
Re: Symbol tables and scopes david@tribble.com (David R Tribble) (2006-02-24)
Re: Symbol tables and scopes david@tribble.com (David R Tribble) (2006-02-24)
Re: Symbol tables and scopes david@tribble.com (David R Tribble) (2006-02-24)
[3 later articles]
| List of all articles for this month |

From: Dave Thompson <david.thompson1@worldnet.att.net>
Newsgroups: comp.compilers
Date: 14 Feb 2006 10:20:20 -0500
Organization: AT&T Worldnet
References: 06-01-101 06-02-015 06-02-021 06-02-049
Keywords: symbols, Cobol
Posted-Date: 14 Feb 2006 10:20:20 EST

On 6 Feb 2006 00:07:28 -0500, glen herrmannsfeldt
<gah@ugcs.caltech.edu> wrote:


> Chris F Clark wrote:
>
> (snip)
>
> > I can easily imagine (and would potentially want to use) a
> > language which has "search paths" that specify how a name gets
> > resolved. In that case, finding the string/hash-value is only a small
> > part of the symbol look-up process. Once you know the hash value, you
> > need to find out which instance of that symbol is relevant.
>
> One interesting case is PL/I, which allows partial qualification
> for structures. True ambiguous cases are not allowed, but cases
> that could be considered ambiguous at different nesting levels
> are allowed.


So does/did COBOL. Except that it calls them 'group's and writes the
subpath in reverse order: ZIP-CODE OF HOME-ADDRESS OF CUST-REC. But
since COBOL originally didn't have nested routines at all and still
makes them rather clumsy, it encourages large routines with lots of
functionality and lots of variables, many of which are large
complicated structures often with similar elements, increasing the
likelihood of collisions/ambiguities, resulting in many burnt-once
programmers who always fully qualify everything.


- David.Thompson1 at worldnet.att.net


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.