my man page on Archlinux

Man page or keyword search:  
man Server   11224 pages
apropos Keyword Search (all sections)
Output format
Archlinux logo
[printable version]

my(n)				TclOO Commands				 my(n)


       my - invoke any method of current object

       package require TclOO

       my methodName ?arg ...?

       The my command is used to allow methods of objects to invoke any method
       of the object (or its class). In particular, the set  of	 valid	values
       for methodName is the set of all methods supported by an object and its
       superclasses, including those that are not exported.  The  object  upon
       which  the method is invoked is always the one that is the current con‐
       text of the method (i.e. the object that is returned  by	 self  object)
       from which the my command is invoked.

       Each  object  has  its own my command, contained in its instance names‐

       This example shows basic use of my to use the variables method  of  the
       oo::object class, which is not publicly visible by default:

	      oo::class create c {
		  method count {} {
		      my variable counter
		      print [incr counter]
	      c create o
	      o count		   → prints "1"
	      o count		   → prints "2"
	      o count		   → prints "3"

       next(n), oo::object(n), self(n)

       method, method visibility, object, private method, public method

TclOO				      0.1				 my(n)

List of man pages available for Archlinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net