Dear all,

In my needs to reduce number of dependant modules, I came into "use overload" 
line.
Why its here?

its used in following lines:

=====
package Tcl::List;

use overload '""' => \&as_string,
             fallback => 1;

package Tcl::Var;
....
====

It unfortunate because its usage slurps other 4 modules:

Carp.pm=>e:/perl584/lib/Carp.pm
Exporter.pm=>e:/perl584/lib/Exporter.pm
overload.pm=>e:/perl584/lib/overload.pm
warnings.pm=>e:/perl584/lib/warnings.pm
warnings/register.pm=>e:/perl584/lib/warnings/register.pm

Do Tkx need it?
(Tcl::Tk does not need it)

BTW I noticed that replacing "use DynaLoader" to "use XSLoader" is win-win 
sutiation, because all we need is to load Tcl.dll, which do not require 
heavy-load of DynaLoader.

I'll commit my change to XSLoader, but I need to ask "overload" also...

BR,
Vadim. 

Reply via email to