comp.lang.ada
 help / color / mirror / Atom feed
* Re: Problem with Enumaration and visibility
@ 2001-11-14 15:37 Hambut Frumblefoot
  0 siblings, 0 replies; 7+ messages in thread
From: Hambut Frumblefoot @ 2001-11-14 15:37 UTC (permalink / raw)
  To: comp.lang.ada

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 931 bytes --]

<snip>

-- if I add �use Setup;� in the Start procedure it 
-- works. Why do I have to do this? Is there a 
-- different way without using use. I�m just asking to

-  understand how this works with enumarated types

This error is to do with the visibility of 'free'
functions (i.e. functions that are declared implicitly
on definition of a type), e.g. '=', '/=' etc.  These
functions have the same visibility rules as other
sub-programs declared in a package.  These rule apply
regardless of the type of the type (if you see what I
mean).

Ways of avoiding 'use'*:
1.  'use type package.typename'
2.  function '=' renames examiner.'='

Hope this helps,

Hambut

* Don't try and type these in as they probably won't
work - I haven't checked the syntax.  Hopefully
they'll give a pointer.


__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-11-14 17:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <slrn9v4uqg.h34.randhol+abuse@kiuk0156.chembio.ntnu.n o>
2001-11-14 13:03 ` Problem with Enumaration and visibility Preben Randhol
2001-11-14 13:48   ` Wilhelm Spickermann
2001-11-14 16:55     ` Preben Randhol
2001-11-14 15:28   ` Ted Dennison
2001-11-14 16:32   ` Jeffrey Carter
2001-11-14 17:25     ` Preben Randhol
2001-11-14 15:37 Hambut Frumblefoot

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