Skip to content
Tcl Source Code Artifact [f3b7008fe6]
Login

Artifact [f3b7008fe6]

Artifact f3b7008fe64987fa2745281cdc36ed25f12aa505:

Ticket change [f3b7008fe6] - New ticket [3098085fffffffff|3098085fff] <i>ensemble loosing compileProc</i>. by gneumann on 2010-10-29 09:43:25.
D 2010-10-29T09:43:25
J assignee msofer
J cmimetype text/plain
J comment The\sfollowing\sproblem\sshowed\sup\sin\saolserver,\swhich\sproduces\sa\sblueprint\sof\sall\stcl-commands\sfor\sinitializing\sper-thread\sinterpreter.\sThis\sblueprint\scontains\sapp\sprocs,\s....\sand\sas\swell\sensembles.\sWhen\sa\sTcl\sensemble\s(e.g.\sinfo)\sis\srecreated,\sit\slooses\sits\scompileProc,\swhich\shas\sthe\sconsequence\sthat\se.g.\s"info\sexists"\sis\snot\scompiled\sproperly\sanymore.\sNot\ssure,\sif\sthis\squalifies\sas\sa\sbug,\sbut\sit\sis\scertainly\s"unexpected\sbehavior".\s\n\nThe\sproblem\sat\shand\scan\sbe\s"solved"\sby\sreconfiguring\sinstead\sof\sredefining\spreexisting\sensembles\s(my\scurrent\sfix),\sbut\si\swould\sthink\sthat\susing\sTclCompileEnsemble()\swould\smake\sas\swell\ssense\sfor\suser\sensembles,\swhich\scould\sbenefit\sas\swell\sfrom\sthe\scompiler,\swhen\sthe\sensemble\scontains\se.g.\s"info\sexists".\sI\swould\shave\sexpected,\sthat\sall\sensembles\shave\sthe\ssame\scompileProc.\n\nThe\sdetails:\sthe\sscript\sbelow\sshows\sthe\sbytecode\sbefore\sand\safter\sa\sscripted\sensemble\sdefinition.\sbefore,\s"info\sexists"\sis\scompiled\sto\s\n\n\s\sCommand\s1:\s"info\sexists\sfoo"\n\s\s\s\s(0)\sexistScalar\s%v0\s#\svar\s"foo"\n\s\s\s\s(5)\sdone\s\n\nafter,\sit\sis\sjust\sthe\s"info\scommand"\n\n\s\sCommand\s1:\s"info\sexists\sfoo"\n\s\s\s\s(0)\spush1\s0\s#\s"info"\n\s\s\s\s(2)\spush1\s1\s#\s"exists"\n\s\s\s\s(4)\spush1\s2\s#\s"foo"\n\s\s\s\s(6)\sinvokeStk1\s3\s\n\s\s\s\s(8)\sdone\s\n\nThis\swas\sobserved\swith\stcl\s8.5.9\sand\stcl\s8.6b*,\smac\sos\sx\sand\sdebian/ubuntu\slinux\s(32\sand\s64bit)\n-gustaf\sneumann\n\n======================================\nproc\sfoo\s{}\s{info\sexists\sfoo}\nputs\s[::tcl::unsupported::disassemble\sproc\sfoo]\n\n\s\snamespace\seval\s::tcl::info\s{\n\s\s\s\snamespace\sensemble\screate\s-command\s::info\s-unknown\s{}\s-subcommands\s{}\s-prefixes\s1\s-map\s{\n\s\s\s\s\s\sargs\s::tcl::info::args\sbody\s::tcl::info::body\scmdcount\s::tcl::info::cmdcount\s\n\s\s\s\s\s\scommands\s::tcl::info::commands\scomplete\s::tcl::info::complete\sdefault\s::tcl::info::default\s\n\s\s\s\s\s\sexists\s::tcl::info::exists\sframe\s::tcl::info::frame\sfunctions\s::tcl::info::functions\s\n\s\s\s\s\s\sglobals\s::tcl::info::globals\shostname\s::tcl::info::hostname\slevel\s::tcl::info::level\s\n\s\s\s\s\s\slibrary\s::tcl::info::library\sloaded\s::tcl::info::loaded\slocals\s::tcl::info::locals\s\n\s\s\s\s\s\snameofexecutable\s::tcl::info::nameofexecutable\spatchlevel\s::tcl::info::patchlevel\s\n\s\s\s\s\s\sprocs\s::tcl::info::procs\sscript\s::tcl::info::script\s\n\s\s\s\s\s\ssharedlibextension\s::tcl::info::sharedlibextension\stclversion\s::tcl::info::tclversion\s\n\s\s\s\s\s\svars\s::tcl::info::vars}\n\s\s}\nproc\sfoo\s{}\s{info\sexists\sfoo}\nputs\s[::tcl::unsupported::disassemble\sproc\sfoo]\n
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter gneumann
J subsystem 21.\s[namespace]
J title ensemble\sloosing\scompileProc
J type RFE
K 3098085fffffffffffffffffffffffffffffffff
U gneumann
Z d4e89acd4f5bd364ac2648d935b61314