comp.lang.ada
 help / color / mirror / Atom feed
From: seas.gwu.edu!mfeldman@uunet.uu.net  (Michael Feldman)
Subject: Re: Can I overload ": ="?
Date: 13 Oct 92 04:08:58 GMT	[thread overview]
Message-ID: <1992Oct13.040858.26441@seas.gwu.edu> (raw)

In article <1992Oct12.194719.27071@fcom.cc.utah.edu> val@news.ccutah.edu (Val K
artchner) writes:
>(I happen to have run into a situation where this would be useful.  I've
>found a way around it, but I'd like to know if I can do it this way?)
>
>I would like to define what happens when I assign a value of one type (say
>complex) to a variable of another type (say real).  Can I change what is
>meant in Ada by the operation ":=" like I can do with the other operators,
>or am I stuck with assignment of a type to a variable of that type?
>
Nope, sorry. Ada does not allow - under any circumstances - you to change
the meaning of :=.

Mike Feldman
------------------------------------------------------------------------
Michael B. Feldman
co-chair, SIGAda Education Committee

Professor, Dept. of Electrical Engineering and Computer Science
School of Engineering and Applied Science
The George Washington University
Washington, DC 20052 USA
(202) 994-5253 (voice)
(202) 994-5296 (fax)
mfeldman@seas.gwu.edu (Internet)

"Americans wants the fruits of patience -- and they want them now."
------------------------------------------------------------------------

             reply	other threads:[~1992-10-13  4:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-10-13  4:08 Michael Feldman [this message]
  -- strict thread matches above, loose matches on Subject: below --
1992-10-13 12:07 Can I overload ":="? cis.ohio-state.edu!news.sei.cmu.edu!firth
1992-10-14 16:22 dog.ee.lbl.gov!hellgate.utah.edu!caen!destroyer!cs.ubc.ca!utcsri!torn!csd.unb.ca!morgan.ucs.mun.ca!nstn.ns.ca!mmaccorm
1992-10-14 20:27 Mark A Biggar
replies disabled

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