[tcltk-perl] Re: about difference in Tk.pm between 1.49 and 1.50
Brought to you by:
hobbs
|
From: Jeff H. <je...@Ac...> - 2004-04-27 05:00:14
|
Vadim Konovalov wrote:
> For me, there is no much improvement in writing everywhere
> my $int = $W{$$wid}->{'INT'};
> instead of
> my $int = $wint{$$wid};
>
> Here is why:
> both are not perfect but yours is larger, yet will be a bit slower (takes
> one more hash dereference).
>
> For me, better is just to write
>
> $wid->interp;
I would prefer the latter as well, but according to Jan the method
call is much slower than the extra hash dereference, so I chose the
more gruesome code in the interim.
Jeff
|