It does make sense to export Tcl_GetIntForIndex, as per TIP 544.
Thinking ahead to carrying the index-offset reform to Tk, I realize there
is more to do, if it were to be TIPed. For consistency, the plethora of
named index points for various Tk widgets would probably want the same
treatment as "end".
-Donald Arseneau
...Bottom quoting because outlook servers mess up proper quoting...
On 5/15/19 8:03 AM, Jan Nijtmans wrote:
> Op di 14 mei 2019 om 14:30 schreef François Vogel:>> Now taking advantage of TclGetIntForIndex() in Tk could be done, and then we would propagate this to all Tk areas where it's useful (that is entry, spinbox, listbox, ttk:entry, ttk::spinbox, ttk::combobox). Given that a. no existing Tk widget already has this, b. we can do it later without breaking compatibility and c. it's a quite larger project than what TIP #541 is targeting, I suggest this to be the subject of another TIP. Also I believe this would mean promoting TclGetIntForIndex() to the public interface as Tcl_GetIntForIndex(), and then document it.> New TIP here: <http://core.tcl.tk/tips/doc/trunk/tip/544.md>>> Implementation (Tcl-part): <http://core.tcl.tk/tcl/timeline?r=tip-544>>> Regards,> Jan Nijtmans
--
Donald Arseneau, TRIUMF CMMS, 604-222-1047x6295
_______________________________________________
Tcl-Core mailing list
Tcl-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcl-core