Skip to content
Tcl Source Code Artifact [4c5dd20f56]
Login

Artifact [4c5dd20f56]

Artifact 4c5dd20f56b8e9b0dbb59a742e3c1b98d5d44a2b7d63d94189e0681772d6ff6f:

Ticket change [4c5dd20f56] - Ticket [af4780b0b5245f03|af4780b0b5] <i>Improve format #d documentation</i> status still Open with 3 other changes by jan.nijtmans on 2025-09-04 14:46:13.
D 2025-09-04T14:46:13.631
J icomment The\sbenefit\sis\sbeing\sable\sto\sproduce\sformatted\sintegers\swith\s"0d",\sin\sthe\ssame\sway\swe\scan\sproduce\shex\sintegers\swith\s"0x"\sprefix.\r\n\r\nIn\sTIP\s#472:\r\n\r\n>\sAlso\sextend\sformat\scommand\s'#'\sflag\sto\sproduce\sthe\sappropriate\s"0d"\sfor\sthe\s"%#d"\sconversion\r\n\r\nI\srealized\sthat,\ssince\sthe\sC\slanguage\sdoesn't\simplement\sthe\s'#'\sflags\sfor\s%d,\sthis\swould\sbe\sa\spotential\sincompatibility.\sTherefore,\sin\sTIP\s#476\sI\sproposed\sto\sonly\slet\sit\shave\seffect\sin\scombination\swith\s0-padding\sor\sa\swidth\sspecifier:\sthat's\sthe\sonly\s2\ssituations\sthe\s"0d"\sprefix\sreally\smakes\ssense.\r\n\r\nSince\sTcl\s9.0\sis\sthe\sfirst\sTcl\sversion\swhich\sunderstand\s0d-prefixed\sintegers,\sno-one\suses\sthis\syet.\sBut\ssince\sthe\s"0d"\sprefix\sis\sadvertised\sas\sone\sof\sthe\sfeatures\sof\sTcl\s9,\sI\swounldn't\sjust\sremove\sthis\s'feature'.
J login jan.nijtmans
J mimetype text/x-fossil-wiki
K af4780b0b5245f035803b5fbeb1cfae62f40f821
U jan.nijtmans
Z d3b6662238dccc49abde6fb338db13cf