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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,794c64d1f9164710 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-21 16:29:16 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!t-online.de!newsfeed.wirehub.nl!news-x2.support.nl!psinet-eu-nl!psiuk-p4!uknet!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: functions, packages & characters Date: Thu, 21 Feb 2002 08:47:05 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: <20020221032525.25608.00002542@mb-mc.aol.com> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1014299227 26575 136.170.200.133 (21 Feb 2002 13:47:07 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 21 Feb 2002 13:47:07 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:20237 Date: 2002-02-21T13:47:07+00:00 List-Id: It appears that you really need to get a bit more formal training regarding the structure of Ada programs. A good place to start would be to go to: http://www.adapower.com/ and look under "Books" and "Learn Ada" (The latter will point you at on line tutorials and books so you don't even have to spend money or wait for something to come in from the bookstore.) Try working through one of these books and their examples, because it will clear up the fundamental misunderstandings you have about how to structure the code. From there we can be a *lot* more helpful with specific questions about individual features of the language. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Unversed Angel" wrote in message news:20020221032525.25608.00002542@mb-mc.aol.com... > I have been looking at my program and wondered if this woul work > > package obtain is > function Get_Line; > end obtain; > > with Text_io; > use Text_io; > package body obtain is > begin > function Get_Line (Text :String) > return Unbounded_String; > Get_Line; > end; > > With Text_IO; > use Text_IO; > with obtain > procedure main is > --- > ---pre: tags are in the text > ---post:tags have been correctly reformatted > --- > Text: File; > > function Find_Dblslash (//) > return Single Slash(/)procedure main is > begin > Put_Line ("Please enter text: "); > use obtain; >