|
From: Joe E. <jen...@fl...> - 2008-01-17 01:32:05
|
miguel wrote: > > Before setting the mutable flag on an empty list, you can force > shimmering to listType using tclListType's setFromAnyProc. After that > you have a List internal rep, and you can do your thing. > > If this is a completely new empty list, a call to Tcl_NewListObj(1,NULL) > will give you back an empty list with List internal rep - empty but with > enough space allocated for 1 element. Also note that, while this might work today, there is absolutely no guarantee that it will continue to work tomorrow. Beware. --JE (bitten by this sort of thing a time or two in the past) |