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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bd0de980b22e8253 X-Google-Attributes: gid103376,public From: je@bton.ac.uk (John English) Subject: Re: Help. Procedure is undefined Date: 1998/01/12 Message-ID: <69bnbq$68t@saturn.brighton.ac.uk>#1/1 X-Deja-AN: 315117163 References: <34B4C915.4BF8@bton.ac.uk> Organization: University of Brighton Newsgroups: comp.lang.ada Date: 1998-01-12T00:00:00+00:00 List-Id: One of our students (GJW3@bton.ac.uk) wrote: : Procedure Main is : ans : integer; : begin : [...snip...] : Helicopter; : [...snip...] : end Main; and in another file... : with Ada.text_io; use Ada.text_io; : with num_io; use num_io; : Procedure Helicopter is : [...snip...] 1) Beware, Big Brother is watching you! 2) Try this: with Helicopter; -- and other things that Main references procedure Main is ... This way, the compiler knows where to look for Helicopter etc., and it knows for sure that when you reference it, it isn't a horrible typing mistake that would otherwise compile. Also, try to think of a better name for the program than "Main"! ----------------------------------------------------------------- John English | mailto:je@brighton.ac.uk Senior Lecturer | http://www.comp.it.bton.ac.uk/je Dept. of Computing | ** NON-PROFIT CD FOR CS STUDENTS ** University of Brighton | -- see http://burks.bton.ac.uk -----------------------------------------------------------------