comp.lang.ada
 help / color / mirror / Atom feed
* What is the point of Private?
@ 2005-04-28 23:22 Simon Smith
  2005-04-28 23:40 ` Ed Falis
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Simon Smith @ 2005-04-28 23:22 UTC (permalink / raw)


Hi,

I am a student at Glasgow uni in the UK and have been writing ada 
programs for my first two years of my course.

I have used and still do use private, eg

type Hash_Array is private;

blah...blah...

private

type Hash_Array is array (Integer range 0 .. 25) of Sc.Set;

end hash.ads;

  however I dont really understand the point of it.

Why is it there? I am sure I have heard talk that its to stop the client 
from seeing exactly how the data is stored/manipulated however if people 
really did want to know this wouldn't they just scroll down the ada spec 
file and find out for themselves or am I missing something here?

Simon



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

end of thread, other threads:[~2005-05-01 22:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-28 23:22 What is the point of Private? Simon Smith
2005-04-28 23:40 ` Ed Falis
2005-04-29  3:14 ` Jeffrey Carter
2005-04-29  9:07   ` Peter Amey
2005-04-30  3:27     ` Jeffrey Carter
2005-04-30  0:49 ` chris
2005-05-01 22:57   ` Simon Smith

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