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,48256b4c3db29e60 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-22 23:21:04 PST Path: newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!news.huji.ac.il!not-for-mail From: "Ehud Lamm" Newsgroups: comp.lang.ada Subject: Re: Overload PUT + GET Date: Mon, 23 Apr 2001 09:09:42 +0300 Organization: The Hebrew University of Jerusalem Message-ID: <9c0haf$kda$1@news.huji.ac.il> References: <9bvf7e$o01$1@news.inter.net.il> NNTP-Posting-Host: di3-17.dialin.huji.ac.il X-Trace: news.huji.ac.il 988006544 20906 132.64.13.17 (23 Apr 2001 06:15:44 GMT) X-Complaints-To: abuse@news.huji.ac.il NNTP-Posting-Date: Mon, 23 Apr 2001 06:15:44 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Xref: newsfeed.google.com comp.lang.ada:6849 Date: 2001-04-23T09:09:42+03:00 List-Id: Shlomi wrote in message news:9bvf7e$o01$1@news.inter.net.il... > Hi all, > > I am newbie in ADA, I need to design a package and I have been asked to > overload > some operators and input/output functions from the user GET - PUT. > How can overload GET and PUT for polynoms ( p1= 2x^2 + 7 ). > The logic is easy but the I don't know the syntax, pls HELP. > If you have a type polynom simply define the procedures procedure Put(P: in Polynom) procedure Get(P: out Polynom). Overloading happens because the names Put and Get are also used for the other I/O operations. I suggest you reread your textbook . -- Ehud Lamm mslamm@mscc.huji.ac.il http://purl.oclc.org/NET/ehudlamm <== Me!