Skip to content
Tcl Source Code Artifact [13ceb6c1d0]
Login

Artifact [13ceb6c1d0]

Artifact 13ceb6c1d01fdefd30391eb607a47f17fc8c32bfc2176860e8558be0763c81b0:

Ticket change [13ceb6c1d0] - New ticket [3bb3bcf2da5bfe20|3bb3bcf2da] <i>Adding support for 8.7/9.0 to Tcl.pm</i>. by chrstphrchvz on 2022-09-06 04:40:55.
D 2022-09-06T04:40:55.225
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment I\swould\slike\sto\sadd\ssupport\sfor\sTcl\s8.7/9.0\sto\sTcl.pm,\sa\swrapper\sfor\susing\sTcl\sfrom\sPerl:\s[https://github.com/gisle/tcl.pm/pull/42].\sMy\sunderstanding\sis\sthat\sit\sintends\sto\sremain\scompatible\swith\sTcl\s8.4.\r\n\r\nThe\smain\sdifficulty\sI\shave\sencountered\sso\sfar\sis\supdating\sits\s<tt>SvFromTclObj()</tt>\sfunction\sfor\sconverting\sa\sgiven\sTcl\svalue\sto\sa\sPerl\svalue\sof\ssimilar\stype.\s(The\s<tt>fromObj()</tt>\sfunction\sin\sPython’s\sTkinter\sserves\sa\ssimilar\spurpose.)\sIt\swill\sneed\sto\saccommodate\stypes\sno\slonger\sbeing\sregistered\sin\snewer\sTcl;\sit\sseems\sthe\sworkaround\sis\sto\screate\sa\s<tt>Tcl_Obj\s*</tt>\sof\sthe\sdesired\stype\sand\sthen\sget\sits\s<tt>typePtr</tt>,\sas\smentioned\sin\sTIP\s484,\sand\salready\sdone\sin\ssome\scases\sby\sTkinter.\r\n\r\nOne\spart\sI\sam\sstill\strying\sto\sunderstand\sis\show\sto\shandle\sboolean\stypes.\sThis\sis\scomplicated\snot\sonly\sby\ssome\sconfusion\son\swhat\sthe\sexpected\sbehavior\son\sthe\sPerl\sside\sis\s(e.g.\s[https://github.com/gisle/tcl.pm/issues/47]),\sbut\salso\sby\sthe\svarious\schanges\ssince\sTcl\s8.4.\sFrom\swhat\sI\scan\stell,\sTcl\sso\sfar\shas\shad\sa\sregistered\s"boolean"\stype\s<tt>tclBooleanType</tt>\sadded\sin\s8.4,\sthen\srenamed\sto\s<tt>oldBooleanType</tt>\sin\s8.5,\sand\sdropped\sin\s9.0\s(and\s8.7\swith\s<tt>TCL_NO_DEPRECATED</tt>);\sand\sit\shas\shad\san\sunregistered\s"booleanString"\stype\s<tt>tclBooleanType</tt>\ssince\s8.5,\sbut\swhich\sis\snow\sgoing\sto\sbe\scalled\s"boolean"\sin\s9.0\s(this\swas\salso\sthe\sbriefly\sthe\scase\sfor\sTcl\s8.7\swith\s<tt>TCL_NO_DEPRECATED</tt>\sfrom\s[8b366f71d8]\suntil\sbeing\sreverted\sseemingly\swithout\scomment\sin\s[https://core.tcl-lang.org/tcl/fdiff?v1=f96e8cd9d38020dc&v2=0fa368afdf3e734c|4f6d4a2b15]).\sI\sam\snot\saware\swhy\s"booleanString"\sis\sbeing\srenamed\sto\s"boolean"\sother\sthan\sit\spossibly\sseeming\sstrange\sto\shave\s"booleanString"\sand\sno\sother\sboolean\stype\spresent.\sIs\sthere\san\sissue\sthat\sprevents\sit\sremaining\s"booleanString"\sfor\scompatibility?\r\n\r\nI\swould\sbe\scurious\sif\sthere\sis\sany\sfurther\sadvice\sfor\sadapting\sC\slibrary\scode\sfor\sTcl\s8.7/9.0\snot\salready\sgiven\sin\sTIPs\s484/485/600,\sand\sif\sanyone\sis\saware\sof\sexamples\sI\scan\srefer\sto\sof\solder\sC\scode\ssuccessfully\supdated\sfor\s8.7/9.0.\sTIP\s484\smentions\ssome\saffected\sprograms,\sbut\sthose\sdo\snot\sappear\sto\sbe\sactively\smaintained.\sI\sam\snot\saware\sof\sTkinter\salready\spreparing\sfor\sTcl\s8.7/9.0,\sand\sRuby\stcltk\sseems\sfurther\sbehind\s(still\scontains\shandling\sfor\sTcl\s8.3).\r\n\r\nThere\sare\sprobably\sother\sthings\sI\sshould\sask\sTcl\sfor\shelp\sin\sthis\seffort,\sthough\sI’m\snot\syet\ssure\ssure\sexactly\swhat.
J foundin trunk
J is_private 0
J login chrstphrchvz
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter chrstphrchvz
J subsystem 10.\sObjects
J title Adding\ssupport\sfor\s8.7/9.0\sto\sTcl.pm
J type Support
K 3bb3bcf2da5bfe20b1ab863fd2de940bd04f4aaf
U chrstphrchvz
Z 77bf83272192207b0b3450aaa30435c1