* How to Use Abstract Data Types (correction)
@ 1998-04-22 0:00 adam
0 siblings, 0 replies; only message in thread
From: adam @ 1998-04-22 0:00 UTC (permalink / raw)
Whoops, in my previous posting I forgot to declare my procedures as
abstract. Thus, my package spec should be:
package Library_Package is
type Library is abstract tagged null record;
type Book is abstract tagged null record;
type Scan_Info is abstract tagged null record;
... procedure(s) to set up a new Library object
procedure Scan_By_Title (Lib : in Library;
Reg_Expression : in String;
Scan : out Scan_Info;
RE_Error : out Boolean)
is abstract;
function More_Books (Scan : Scan_Info) return Boolean
is abstract;
procedure Next_Book (Scan : in out Scan_Info;
Bk : out Book)
is abstract;
procedure Close_Scan (Scan : in out Scan_Info)
is abstract;
... etc.
end Library_Package;
-- Adam
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-04-22 0:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-04-22 0:00 How to Use Abstract Data Types (correction) adam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox