|
From: Arnulf W. <ar...@wi...> - 2010-03-19 08:08:37
|
Am Donnerstag 18 März 2010 17:38:32 schrieb Reinhard Max:
> Hi,
>
> On Thu, 18 Mar 2010 at 11:51, Arnulf Wiedemann wrote:
> > I have built a new version of itcl tagged itcl-4-0b4 in cvs,
>
> itk4.0b4 doesn't built against an installed build of itcl4.0b4,
> because some header files that are referenced by itclInt.h don't get
> installed along with it. Fixed by the first attached patch.
>
> Then, I was getting segfaults from CallItclObjectCmd() when using
> 4.0b4 with Tcl HEAD as of yesterday. Fixed by the second attached
> patch.
>
> Then, I found that 4.0b4 breaks [info complete] when used inside a
> method, because the arguments get expanded somewhere along the way:
>
> --- snip ---
> package require Itcl
>
> ::itcl::class foo {
>
> public method bar {a} {
> info complete $a
> }
> }
> foo myfoo
> myfoo bar {bla blubb}
> --- snap ---
> $ tclsh ./check.tcl
> wrong # args: should be "::info complete command"
> while executing
> "::info complete bla blubb"
> ("uplevel" body line 1)
> invoked from within
> "::itcl::builtin::Info {*}$args"
> (object "::myfoo" procedure "::foo::info" body line 1)
> invoked from within
> "info complete $a"
> (object "::myfoo" method "::foo::bar" body line 2)
> invoked from within
> "myfoo bar {bla blubb}"
> (file "./check.tcl" line 8)
> --- snup ---
>
>
> cu
> Reinhard
>
I have integrated your patches and fixed the "info complete" problem. Thanks
for the patches. I will add the modifed manuals from dkf and then build new
tar balls.
Arnulf
|