Skip to content
Tcl Source Code Artifact [522ecb99dc]
Login

Artifact [522ecb99dc]

Artifact 522ecb99dc7cf0083691f0a1c38e89a2818dcc10:

Ticket change [522ecb99dc] - New ticket [1706593fffffffff|1706593fff] <i>autoloading causes (itcl) &#39;class already exists&#39; error</i>. by legolas_a20 on 2007-04-24 13:16:16.
D 2007-04-24T13:16:16
J assignee dgp
J cmimetype text/plain
J comment \nThere\sis\sa\s'bug'\sin\sthe\sitcl\simplementation\sof\sauto_mkindex_parser::command,\sthat\scauses\san\serror\smessage\ssaying:\nclass\s"::A"\salready\sexists\nif\sit\sis\scombined\swith\sa\ssimple\serror\sin\sthe\sitcl\sclass\sand\sautoloading.\n\n\nI\srealize\sthis\sis\snot\scompletely\sa\stcl\score\sproblem,\showever\sthe\sautoload\spackage\salready\sappears\sto\stry\sto\s'defend'\sagainst\serrors\sin\sexternal\sparser\scommands,\sand\sif\sthis\scase\scould\salso\sbe\scaught,\sit\scould\sreturn\sa\smuch\sbetter\serror\smessage.\n\nExample\sin\sthe\sattachment,\sin\sshort:\sitcl\sallows\syou\sto\sdeclare\sa\sproc\sbut\simplement\sit\slater\s(C++\sstyle\sseparation\sof\sheader\sand\simplementation).\sitcl\shas\simplemented\sthe\sparsing\sfor\sautoload\sby\sadding\sthe\sproc\sto\sthe\sautoload\slist\swhen\sthe\sdeclaration\sis\sseen\s(probably\sbecause\syou\scan\salso\simplement\sthe\sproc\sinline\swith\sthe\sdeclaration,\sagain\smatching\sC++\sstyle.)\n\nNow,\sif\syou\sdeclare\sbut\snot\simplement\sa\sproc,\sit\sis\slisted\sin\sthe\stclindex\sfile,\sbut\safter\ssourcing\sthe\sfile,\sthe\scommand\sis\sstill\snot\sdefined.\sHowever,\sthe\scurrent\schecks\sagainst\sthis\sall\spass.\nThen,\sthe\scommand\sis\sstarted,\scausing\sa\srecursive\scall\sinto\sthe\sautoload\scode,\swhich\ssources\sthe\sfile\sagain,\swhich\sresults\sin\sthe\serror.\n\n(I\shave\stried\sto\sreproduce\sthis\swithout\sitcl,\sbut\shaven't\sbeen\sable\sto.\sI\sdon't\sfully\sunderstand\show\sitcl\screates\sit's\sclass\sprocedures\sas\stcl\sprocs\sand\snamespaces,\sand\show\sthis\ssucceeds\sin\sbypassing\sthe\sexisting\schecks.)\n\nNote:\stested\susing\sitcl\s3.3,\severything\swas\sinstalled\sby\sactivestate's\s8.4.14\stcl\sinstaller,\son\swindows\sxp\ssp2.
J foundin obsolete:\s8.4.14
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter legolas_a20
J subsystem 38.\sInit\s-\sLibrary\s-\sAutoload
J title autoloading\scauses\s(itcl)\s'class\salready\sexists'\serror
J type Bug
K 1706593fffffffffffffffffffffffffffffffff
U legolas_a20
Z 545f6e6bcb4706d732ec7c1d63e25e0a