Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!purdue!mentor.cc.purdue.edu!noose.ecn.purdue.edu!en.ecn.purdue.edu!wscott From: wscott@en.ecn.purdue.edu (Wayne H Scott) Newsgroups: comp.sys.handhelds Subject: Re: overloading operators Message-ID: <1990Nov25.213837.10655@en.ecn.purdue.edu> Date: 25 Nov 90 21:38:37 GMT References: Organization: Purdue University Engineering Computer Network Lines: 24 In article bagchi@eecs.umich.edu (Ranjan Bagchi) writes: > > Is there any way I can take a function, such as '+', and >modify it to apply to data-structures (Tagged, I suppose) which it >didn't previously? > I've been screwing around with simulating matrices with nested >lists, and would be much happier if I could multiply 'em with 'x', as >opposed to calling a function called 'mult'. > > Ah, well... > > -rj You can write your routine called 'mult' that will handle all of the data type you want and then assign that function to the 'x' key with: << prog >> 75 ASN Then put the calculator in user mode and you are all set! -- _______________________________________________________________________________ Wayne Scott | INTERNET: wscott@ecn.purdue.edu Electrical Engineering | BITNET: wscott%ecn.purdue.edu@purccvm Purdue University | UUCP: {purdue, pur-ee}!ecn.purdue.edu!wscott