RE: [tcltk-perl] Drop listify [PATCH]
Brought to you by:
hobbs
From: Jeff H. <je...@Ac...> - 2004-04-15 20:53:15
|
> 1. it could be reasonable to sometimes make reverse > subtitution of parameters after getting result of Tcl > calculation. May be in subroutine with slightly different > name (wcall?) > > it is needed for, say, $widget->cget('-textvariable') to > return a reference scalar and not a name like _SCALAR_0xXXXXXX > > Very correct way is not obvious to me, but half-correct way > is to create another wrapper layer subroutine wcall that will > search content of $res (and @res?) in %anon_refs hash. Yes, it would be nice to be able to round trip these values better. I think the first run would be to clean up how the module creates commands and vars in Tcl (use a ::perl namespace, where we can also create our own stuff like ::perl::eval). Later on we could look into creating our own object type in Tcl to wrap Perl SVs, so we never lose touch either way. > 2. I see it very useful for DEBUGging purposes to have a > possibility to track what exactly list passed to "icall" and > what returned from it. This helps in developing perlTk > compatibility subroutines... This is just another couple of print statements cased on DEBUG, no? Jeff |