Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
alhimik45
· 2y ago · 0 comments
>refcounting does the job since no cycles are possible by design
So double-linked list is impossible to define?
Comments
[–]
BoingBoomTschak
2y ago
You can't define new data structures as such in pure Tcl, as you don't have pointers. And as for cycles, you can't modify an object to add a reference to itself, since the copy-on-write will just create a new object.
[–]
sigzero
2y ago
Rosetta Code has examples of DBLs in Tcl and Tcl::OO.