default (empty) method in [incr tcl] 
Author Message
 default (empty) method in [incr tcl]


is it possible to have a default method in [incr tcl]?

Suppose, I have a class `Fred' and and object in this class:
Fred z -coordinates "1 2 3"
which holds (public) coordinates, which can be configured the
normal way.

I'd like [z] behave like [z cget -coordinates]

          .. __o    __o    __o    __o
         .. -\<,   -\<,   -\<,   -\<,
 (joze) ..(_)/(_)(_)/(_)(_)/(_)(_)/(_)
 Johannes Zellner                
 Institut fr Kristallographie   fon : ++49 721 608-7263
 Universit?t Karlsruhe           fax : ++49 721 608-7264

 76128 Karlsruhe                 http://www.*-*-*.com/ ~joze

Fri, 11 May 2001 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Non-intuitive treatment of empty list as default parameter value on class method

2. C procs for methods in [incr tcl] et al

3. converting large java program to incr tcl and incr tk

4. Need help installing [incr Tcl]/[incr Widgets]

5. incr Tcl, INCR TK, and Tix

6. looking for new [incr Tcl]/[incr TK] beta and/or documentation

7. Use of Scintilla from tcl/tk or incr Tcl

8. TIP #50: Bundle [[incr Tcl]] with the Core Tcl distribution

9. TIP #6: Include [Incr Tcl] in the Core Tcl distribution

10. Tcl debuggers and [incr tcl]

11. [incr Tcl] makes call to Tcl info in a way that segfaults

12. Incr Tcl for Tcl/Tk 8.1?


Powered by phpBB® Forum Software