Index: doc/migration1-2.html =================================================================== diff -u -rff41e1a0cb88c3aa7b96ca3b67b27043794991b0 -rc619db7db573de1047ec1810dc0a8dc4d86ce98d --- doc/migration1-2.html (.../migration1-2.html) (revision ff41e1a0cb88c3aa7b96ca3b67b27043794991b0) +++ doc/migration1-2.html (.../migration1-2.html) (revision c619db7db573de1047ec1810dc0a8dc4d86ce98d) @@ -321,7 +321,119 @@ obj info callable -which methodName - + +

List definition of scripted methods defined by classes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
XOTcl 1XOTcl 2
cls info instbody methodNamecls info method body methodName
cls info instargs methodNamecls info method args methodName
cls info instnonposargs methodNamecls info method parameter methodName
cls info instdefault methodNamecls info method parameter methodName
cls info instpre methodNamecls info method precondition methodName
cls info instpost methodNamecls info method postcondition methodName
n.a.cls info method definition methodName
+ +

List definition of scripted object specific methods

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
XOTcl 1XOTcl 2
obj info body methodNameobj info method body methodName
obj info args methodNameobj info method args methodName
obj info nonposargs methodNameobj info method parameter methodName
obj info default methodNameobj info method parameter methodName
obj info pre methodNameobj info method precondition methodName
obj info post methodNameobj info method postcondition methodName
n.a.obj info method definition methodName
+

For definition of class object specific methods, use modifier + object as shown in examples above. +

+ +

List definition of methods defined by aliases, setters or forwarders

+ + + + + + + + + + + +

List fully qualified name of method

+
XOTcl 1XOTcl 2
n.a.obj info method definition methodName
n.a.cls info method definition methodName
+ + + + + + + + + + +

List type of a method

+
XOTcl 1XOTcl 2
n.a.obj info method name methodName
n.a.cls info method name methodName
+ + + + + + + + + + + +

Predefined Methods

Dispatch, Aliases, etc.

Assertions

@@ -369,5 +481,5 @@
- Last modified: Tue Jan 5 18:26:03 CET 2010 + Last modified: Tue Jan 5 19:00:20 CET 2010 Index: library/lib/xotcl1.xotcl =================================================================== diff -u -rff41e1a0cb88c3aa7b96ca3b67b27043794991b0 -rc619db7db573de1047ec1810dc0a8dc4d86ce98d --- library/lib/xotcl1.xotcl (.../xotcl1.xotcl) (revision ff41e1a0cb88c3aa7b96ca3b67b27043794991b0) +++ library/lib/xotcl1.xotcl (.../xotcl1.xotcl) (revision c619db7db573de1047ec1810dc0a8dc4d86ce98d) @@ -195,11 +195,6 @@ # # already emulated: # - # => info method parameter .... replaces - # info args - # info nonposargs - # info default - # # => info -per-object method parameter .... replaces # info instargs # info instnonposargs @@ -224,9 +219,12 @@ # info ismixin # info istype # - # => method .... replaces + # => info method .... replaces # proc # instproc + # info args + # info nonposargs + # info default # # => TODO: use "params" in serializer, and all other occurances # @@ -237,13 +235,13 @@ # proc ::xotcl::info_args {allocation o method} { - set result [list] - foreach \ - argName [::xotcl::cmd::${allocation}Info::method $o args $method] \ - flag [::xotcl::cmd::${allocation}Info::method $o parameter $method] { - if {[string match -* $flag]} continue - lappend result $argName - } + set result [list] + foreach \ + argName [::xotcl::cmd::${allocation}Info::method $o args $method] \ + flag [::xotcl::cmd::${allocation}Info::method $o parameter $method] { + if {[string match -* $flag]} continue + lappend result $argName + } #puts stderr "+++ get ${inst}args for $o $method => $result" return $result }
XOTcl 1XOTcl 2
n.a.obj info method type methodName
n.a.cls info method type methodName