Index: doc/migration1-2.html =================================================================== diff -u -r25de23e98a24210b149179c5d1f52836a65fddab -rfa0f6eb39d86da65a0c8f994a30d625d635172ad --- doc/migration1-2.html (.../migration1-2.html) (revision 25de23e98a24210b149179c5d1f52836a65fddab) +++ doc/migration1-2.html (.../migration1-2.html) (revision fa0f6eb39d86da65a0c8f994a30d625d635172ad) @@ -99,8 +99,7 @@   .method foo args {...}
}

Object create o
- # recommendation missing: alternatives:
- #    o eval {set .x 1}
+ o eval {set .x 1}
#    ::xotcl::setinstvar o x 1
o method foo args {...}
@@ -166,11 +165,11 @@ XOTcl 1XOTcl 2 someObject set varname value - ... + someObject eval [list set .varname value] set newVar [someObject set otherVar] - set newVar [...]
+ set newVar [someObject eval {set .otherVar}]
@@ -182,7 +181,7 @@ someObject exists varname - ... do we have to keep exists for this reason? ... + someObject eval {info exists .varname} @@ -197,5 +196,5 @@
- Last modified: Sat Jan 2 15:04:41 CET 2010 + Last modified: Sat Jan 2 19:05:22 CET 2010 Index: generic/predefined.h =================================================================== diff -u -r25de23e98a24210b149179c5d1f52836a65fddab -rfa0f6eb39d86da65a0c8f994a30d625d635172ad --- generic/predefined.h (.../predefined.h) (revision 25de23e98a24210b149179c5d1f52836a65fddab) +++ generic/predefined.h (.../predefined.h) (revision fa0f6eb39d86da65a0c8f994a30d625d635172ad) @@ -8,6 +8,7 @@ "set cmdName [namespace tail $cmd]\n" "if {$cmdName in [list \"instvar\" \"object-method\"]} continue\n" "::xotcl::alias Object $cmdName $cmd}\n" +"::xotcl::alias Object eval -objscope ::eval\n" "foreach cmd [info command ::xotcl::cmd::Class::*] {\n" "set cmdName [namespace tail $cmd]\n" "if {$cmdName in [list \"class-method\"]} continue\n" Index: generic/predefined.xotcl =================================================================== diff -u -r25de23e98a24210b149179c5d1f52836a65fddab -rfa0f6eb39d86da65a0c8f994a30d625d635172ad --- generic/predefined.xotcl (.../predefined.xotcl) (revision 25de23e98a24210b149179c5d1f52836a65fddab) +++ generic/predefined.xotcl (.../predefined.xotcl) (revision fa0f6eb39d86da65a0c8f994a30d625d635172ad) @@ -25,6 +25,7 @@ #foreach cmd {array append eval incr lappend set subst unset trace} { # ::xotcl::alias Object $cmd -objscope ::$cmd #} + ::xotcl::alias Object eval -objscope ::eval # provide the standard command set for Class foreach cmd [info command ::xotcl::cmd::Class::*] {