From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 13 Oct 92 04:08:58 GMT From: seas.gwu.edu!mfeldman@uunet.uu.net (Michael Feldman) Subject: Re: Can I overload ": ="? Message-ID: <1992Oct13.040858.26441@seas.gwu.edu> List-Id: 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." ------------------------------------------------------------------------