Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!dslg0849 From: dslg0849@uxa.cso.uiuc.edu (Daniel S. Lewart) Newsgroups: comp.lang.pascal Subject: Re: TP5.5: Can't store method in procedure variable Keywords: Method Object Procedure TP5.5 Message-ID: <1990Dec4.232438.927@ux1.cso.uiuc.edu> Date: 4 Dec 90 23:24:38 GMT References: <1990Dec3.061013.22258@ux1.cso.uiuc.edu> Sender: news@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 18 The following are excerpts from a note sent to me by Mark Garlanger: > What you have to remember is that each method has a 'Self' parameter. That > is Obj.Method; can be thought of as Method(Obj); look on page 17,18 of > Turbo 5.5 OOP Guide. So when you try to assign a method to a procedure > variable, there are two addresses that need to be saved(Obj and the address of > Method). Since the compiler only has room for one address in the procedure > variable, it prints out the compiler error. > ... > To me, this looks like the only way to do it. Maybe someone else out there > knows another solution to this. Sorry I couldn't be of more help. I believe that this is the correct explanation of my problem. My last question is whether @ can be applied to an object method. The OOP Guide says 'yes', but my experience says 'no'. Thanks to everyone who helped, Dan d-lewart@uiuc.edu Brought to you by Super Global Mega Corp .com