Re: Tying sub arguments is rare?
[email protected] (Nick Ing-Simmons) Thu, 14 Oct 1999 21:33:15 +0100
| Newsgroups | perl.perl6.porters |
|---|---|
| Message-ID | <[email protected]> |
Chip Salzenberg <[email protected]> writes: >According to Graham Barr: >> On Wed, Oct 13, 1999 at 02:10:07PM -0700, Chip Salzenberg wrote: >> > > But then Tk will need a lot of work if XS is not going to be >> > > compatible as it stresses XS now :-) >> > >> > I see a thin thread of hope. Are the ties via references user-visible? >> >> I am not sure what you mean ... > >I mean, can Tk be changed to work without C<tie $$ref>, or is it part >of Tk's public (documented) interface? the documented interface is $obj->configure(-variable => \$foo) where configure is an XS defined method. Given the reference the XS code must be able to arrange for C code to be called on either FETCH or STORE. It is currently done with 'U' magic. Other than wholesale changes XS side (which are inevitable) I don't see a problem. -- Nick Ing-Simmons