View · Search · Index
No registered users in community xowiki
in last 10 minutes

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

From: Laurent Duperval <laurent.duperval_at_netergynet.com>
Date: Wed, 13 Dec 2000 09:33:14 -0500 (EST)

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!