From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.249.197 with SMTP id yw5mr11451945pac.34.1410337570304; Wed, 10 Sep 2014 01:26:10 -0700 (PDT) X-Received: by 10.140.30.36 with SMTP id c33mr882117qgc.2.1410337569965; Wed, 10 Sep 2014 01:26:09 -0700 (PDT) Path: border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.ripco.com!news.glorb.com!r2no18024737igi.0!news-out.google.com!q8ni0qal.1!nntp.google.com!m5no3496qaj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 10 Sep 2014 01:26:09 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=75.178.36.13; posting-account=bDZo8goAAADwRO71ouDFRMCIZ96XBCK3 NNTP-Posting-Host: 75.178.36.13 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: is this a mistake in the book or ... From: gdotone@gmail.com Injection-Date: Wed, 10 Sep 2014 08:26:09 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.dca.giganews.com comp.lang.ada:188937 Date: 2014-09-10T01:26:09-07:00 List-Id: The following coming from Ada 95 Problem Solving and Program Design p.121 Program 3.8 Specification for Screen Package ---------------------------------------------------------------------- Package Screen is ---------------------------------------------------------------------- -- | Procedure for drawing pictures on ANSI Terminal Screen -- | Author: Michael B. Feldman, The George Washington University -- | Last Modified: July 1995 ---------------------------------------------------------------------- -- constants: the number of rows and columns on the terminal Screen_Depth : constant Integer := 24; Screen_Width : constant Integer := 80; -- subtypes giving the ranges of acceptable inputs -- to the cursor-positioning operation subtype Depth is Integer range 1..Screen_Depth; subtype Width is Integer range 1..Screen_Width; procedure Beep; -- Pre: None; -- Post: Terminal makes its beep sound once procedure ClearScreen; -- Pre: None -- Post: Terminal Screen is cleared procedure MoveCursor (Column : Width; Row : Depth); -- Pre: Column and Row have been assigned in-range value -- Post: Cursor is moved to the given spot on the screen End Screen; when i compile this using gnatmake -gnatl Screen.adb i get an error message: >>> keyword "Body" expected here [see file name] and a pointer to the location right after Package and before Screen are package specification able to be compiled without the body? and or how do i compile this? in program 3.9 p 122 Body of Screen Package i do see PACKAGE BODY Screen is ... so do they need to be compiled together? if so, how do i do that?