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 autolearn=ham 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-20 18:54:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!newscon02.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr14.news.prodigy.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: functions, packages & characters References: <20020220201334.11694.00002066@mb-bg.aol.com> X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 67.112.201.47 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr14.news.prodigy.com 1014259981 ST000 67.112.201.47 (Wed, 20 Feb 2002 21:53:01 EST) NNTP-Posting-Date: Wed, 20 Feb 2002 21:53:01 EST Organization: Prodigy Internet http://www.prodigy.com X-UserInfo1: OH\IRYOGTRUSP_@YMZJ\_Q\@TJ_ZTB\MV@BNMRQIMASJETAANVW[AKWZE\]^XQWIGNE_[EBL@^_\^JOCQ^RSNVLGTFTKHTXHHP[NB\_C@\SD@EP_[KCXX__AGDDEKGFNB\ZOKLRNCY_CGG[RHT_UN@C_BSY\G__IJIX_PLSA[CCFAULEY\FL\VLGANTQQ]FN Date: Thu, 21 Feb 2002 02:53:01 GMT Xref: archiver1.google.com comp.lang.ada:20194 Date: 2002-02-21T02:53:01+00:00 List-Id: > I want to know if i can include several functions in one main program. Yes, you can declare functions in the declarative part of another function (or procedure or block). So you could modify your program to declare your function Get_Line just after "Text: File;" for instance. Of course you would have to give an executable body for the function too, or perhaps in this case you just want it to rename the standard To_Unbounded_String function. Similarly you could declare a function Find_Dblslash, including coding what it does. Take a look at your Ada texts/tutorials to see examples.