comp.lang.ada
 help / color / mirror / Atom feed
* Change to obscure visibility rule in 9x
@ 1994-10-18 13:44 Paul Graham
  1994-10-18 15:23 ` Robert I. Eachus
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Graham @ 1994-10-18 13:44 UTC (permalink / raw)



Why did Ada 83 have this rule, and why did 9x eliminate it?

    8.3(16) Within the specification of a subprogram, every declaration
    with the same designator as the subprogram is hidden ... where
    hidden in this manner, a declaration is visible neither by selection
    nor directly.

Paul
--
Paul Graham 	graham@compass-da.com	Compass Design Automation, Inc.
(speaking only for myself)	"Cekoslovakyalilastiramadiklarimizdanmissiniz."



^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <GRAHAM.94Oct18094458@clsi.clsi.com>]
* Re: Change to obscure visibility rule in 9x
@ 1994-10-19  9:39 Simtel20 Transfer
  0 siblings, 0 replies; 7+ messages in thread
From: Simtel20 Transfer @ 1994-10-19  9:39 UTC (permalink / raw)


Bob Duff writes:
         2.a   Reason:  The reason for making overloadable declarations with
         profiles special is to simplify compilation:  until the compiler has
         determined the profile, it doesn't know which other declarations are
         homographs of this one, so it doesn't know which ones this one should
         hide.  Without this rule, two passes over the _specification or
         generic_instantiation would be required to resolve names that denote
         things with the same name as this one.

So the compiler has to look at a few hundred bytes of source code twice,
With today's 8MB and higher PCs that doesn't seem like any problem. It
seems like the one-pass goal should be deferred in favor of removing
rules, especially obscure ones.  I am not a compiler person so maybe
someone will say there is more to this than meets the eye.
sam harbaugh HARBAUGH@ROO.FIT.EDU

What's the difference between the new Denver airport and the White House?
You can land an airplane at the White House!



^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <INFO-ADA%94101904360935@vm1.nodak.edu>]

end of thread, other threads:[~1994-10-20 14:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-10-18 13:44 Change to obscure visibility rule in 9x Paul Graham
1994-10-18 15:23 ` Robert I. Eachus
     [not found] <GRAHAM.94Oct18094458@clsi.clsi.com>
1994-10-18 17:38 ` Bob Duff
1994-10-20  4:01   ` Paul Graham
     [not found]   ` <GRAHAM.94Oct20000151@canopus.clsi.com>
1994-10-20 14:46     ` Bob Duff
  -- strict thread matches above, loose matches on Subject: below --
1994-10-19  9:39 Simtel20 Transfer
     [not found] <INFO-ADA%94101904360935@vm1.nodak.edu>
1994-10-19 12:33 ` Bob Duff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox