Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!uc!noc.MR.NET!gacvx2.gac.edu!hhdist From: kanecki@vacs.uwp.wisc.edu (David Kanecki) Newsgroups: comp.sys.handhelds Subject: RE: overloading operators Message-ID: <9011260133.AA01759@vacs.uwp.wisc.edu> Date: 26 Nov 90 01:33:55 GMT Lines: 17 To: handhelds@gac.edu Return-path: To: handhelds@gac.edu an old way to overload operators is to setup a jump table like in the C language example below: aft[1]=*mat_mult(); aft[2]=*mat_add(); aft[3]=*mat_inverse(); then re assign the keys to specific locations in the jump table, or call table. And, to access a function one would use: aft[1](x,y) { multiply matrix x by y } David H. Kanecki, Bio. Sci., A.C.S. kanecki@vacs.uwp.wisc.edu "Engage....", Capt. Picard, Star-Trek Next Generation