comp.lang.ada
 help / color / mirror / Atom feed
From: Hambut Frumblefoot <hfrumblefoot@yahoo.com>
To: comp.lang.ada@ada.eu.org
Subject: Re: Problem with Enumaration and visibility
Date: Wed, 14 Nov 2001 07:37:17 -0800 (PST)
Date: 2001-11-14T07:37:17-08:00	[thread overview]
Message-ID: <mailman.1005752302.22342.comp.lang.ada@ada.eu.org> (raw)

[-- 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



             reply	other threads:[~2001-11-14 15:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-14 15:37 Hambut Frumblefoot [this message]
     [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
replies disabled

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