Y
Hacker News
new
|
ask
|
show
|
jobs
by
alhimik45
798 days ago
>refcounting does the job since no cycles are possible by design
So double-linked list is impossible to define?
2 comments
BoingBoomTschak
798 days 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.
link
sigzero
798 days ago
Rosetta Code has examples of DBLs in Tcl and Tcl::OO.
link