comp.lang.ada
 help / color / mirror / Atom feed
From: "Ehud Lamm" <mslamm@mscc.huji.ac.il>
Subject: Re: Overload PUT + GET
Date: Mon, 23 Apr 2001 09:09:42 +0300
Date: 2001-04-23T09:09:42+03:00	[thread overview]
Message-ID: <9c0haf$kda$1@news.huji.ac.il> (raw)
In-Reply-To: 9bvf7e$o01$1@news.inter.net.il



Shlomi <wargy@zahav.net.il> 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!








      reply	other threads:[~2001-04-23  6:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-22 21:33 Overload PUT + GET Shlomi
2001-04-23  6:09 ` Ehud Lamm [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox