[Xotcl] Re: [Xotcl] Re: [Xotcl] instproc vs proc

Laurent Duperval laurent.duperval at netergynet.com
Wed Dec 13 15:33:14 CET 2000


On 13 Dec, Kristoffer Lawson wrote:
> Well proc is something you use if you want a procedure that exists
> only in that instance of an object. So if you want a procedure for
> class Foo which doesn't appear in instances of Foo then you use "proc".
> The same applies if you want to add a procedure to a single object.
> I must admit I don't really use it much myself but it's good to have it
> when you do need it, and really works with the dynamic nature of the
> language.
> 

Ah! So it's somewhat analogous to static methods in Java. Except that is't
dynamic. :-)

L

-- 
MY EMAIL ADDRESS HAS CHANGED --> UPDATE YOUR ADDRESSBOOK

Laurent Duperval                   "Montreal winters are an intelligence test,
Netergy Networks - Java Center            and we who are here have failed it."
Phone: (514) 282-8484 ext. 228                                   -Doug Camilli
mailto:laurent.duperval at netergynet.com           Penguin Power!






More information about the Xotcl mailing list