Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!UA1VM.BITNET!MDORMAN1 From: MDORMAN1@UA1VM.BITNET (Mike Dorman) Newsgroups: comp.lang.modula2 Subject: Re: Why no ** operator in Modula2? Message-ID: Date: 5 Jun 91 13:21:25 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Modula2 List Distribution: world Organization: Institute for Study of Wombats and Lemurs Lines: 22 Someone opined in a Dr. Dobbs Journal many years back, that one obvious addition to Modula-2 (or any other language, for that matter) is a keyword like OPERATOR, or something, which would let you define thingies which you use to perform operations on variables, like **. The only problem I see is that it would either have to take into account all possible variable types, or be variable-type-specific. It would be quite nice to be able to write a + operator for concatenating strings, and stuff like that. Mike. ------------------------------------------------------------------------------- : Michael Alan Dorman : : : MDORMAN1@UA1VM.UA.EDU : Hobbies are things people do when they should be : : BIX: syssupport : sleeping. --M.A.D. : : GEnie: M.DORMAN2 : : : PostalNet: : : : Box 8068 : Stonehenge was built by two drunks with no : : Tuscaloosa, AL : witnesses. --P.S.McGhee : : 35486 : : -------------------------------------------------------------------------------