Skip to content
Tcl Source Code Artifact [e9e4952dc9]
Login

Artifact [e9e4952dc9]

Artifact e9e4952dc952c970e20cdb50715299a6f85b25b9:

Ticket change [e9e4952dc9] - Ticket [580433ffffffffff|580433ffff] <i>CONST prototypes in 8.4.</i> status still Open with 4 other changes by dgp on 2002-07-13 02:15:42.
D 2002-07-13T02:15:42
J icomment Logged\sIn:\sYES\s\nuser_id=80530\n\n\nThat's\sjust\snot\swhat\sUSE_NON_CONST\s/\sCONST84\sis\sfor.\n\nCONST84\sexists\sto\sdisable\sonly\sthose\snew\sCONSTs\sthat\nwould\sotherwise\sforce\sextensions\sto\sdrop\s(compiling)\s\nsupport\sfor\spre-8.4\sTcl,\sbecause\scompilers\sdo\snot\sknow\nhow\sto\sconvert\sa\s(char\s**)\sto\sa\s(const\schar\s**).\nUSE_NON_CONST\sallows\sfor\ssupport\sfor\sboth\s8.3\nand\s8.4\sheaders\suntil\sa\spackage\snaturally\swants\sto\nrequire\s8.4\sbecause\sit\sis\susing\s8.4\sfeatures.\n\nTcl\sroutines\sthat\snow\sreturn\s(CONST\schar\s*)\swhere\nthey\spreviously\sreturned\s(char\s*)\sdo\snot\sneed\ssuch\sa\nmechanism,\sbecause\scompilers\sdo\sknow\show\sto\nconvert\s(char\s*)\svalues\sinto\s(const\schar\s*)\svalues.\nThis\smeans\sthat\sextensions\scan\supdate\stheir\scode\nto\scompile\swith\sboth\s8.3\sand\s8.4\sheaders,\sand\nthat's\swhat\sthey're\sexpected\sto\sdo\sto\sbegin\nsupporting\sTcl\s8.4.\n\nTcl\s8.4\sdoes\snot\soffer\sa\s"#define\sand\sgo"\smigration\noption\sfor\sdealing\swith\sthe\sCONST-ification\schanges.\nAt\sa\sminimum,\sextensions\smust\sdeal\swith\sthe\ssource\nincompatibility\sapproved\sby\sTIP\s27.\n\nIt's\spossible\sthat\ssuch\sa\s"#define\sand\sgo"\soption\scould\sbe\nprovided,\sbut\sit\swould\sneed\sto\sbe\ssomething\snew,\snot\sa\ndual\smeaning\simposed\son\sCONST84.\s\sI'd\srather\snot\ngo\sthat\sway,\sbut\sit\sis\spossible.\n\n
J login dgp
J mimetype text/plain
J username dgp
K 580433ffffffffffffffffffffffffffffffffff
U dgp
Z 82495854f8314e6a6b74acecddb7c1b3