Menu

#278 "is object -class" fails in namespace

4.0*
closed-fixed
None
5
2017-10-24
2017-10-24
No

The following script prints "1" in Itcl 3.4 and "0" in Itcl 4.0.5:

package require Itcl

namespace eval N {
    itcl::class C {}
    set obj [namespace which -command [C #auto]]
}

puts [itcl::is object -class N::C $N::obj]

Discussion

  • Don Porter

    Don Porter - 2017-10-24

    Confirmed.
    Appears this has never worked in the Itcl 4 development series.

     
  • Don Porter

    Don Porter - 2017-10-24

    Fixed for Itcl 4.1.1

     
  • Don Porter

    Don Porter - 2017-10-24
    • status: open --> closed-fixed
    • assigned_to: Don Porter
     
  • Tim Tomkinson

    Tim Tomkinson - 2017-10-24

    Thanks for the quick response!

     

Log in to post a comment.