]> gitweb.factorcode.org Git - factor.git/commit
dlists: make a dlist-link tuple so you can "be the node" by subclassing it. this...
authorDoug Coleman <doug.coleman@gmail.com>
Wed, 16 Nov 2011 00:30:20 +0000 (16:30 -0800)
committerDoug Coleman <doug.coleman@gmail.com>
Wed, 16 Nov 2011 00:33:16 +0000 (16:33 -0800)
commit9ae3b50a5306fdc29ee70c12433faf3a462fa5f5
treed065d63ab6572e5d6d933cc5ee2a5c4622735480
parent5a2243d48108c03ce8be08ada3c97a19ce230884
dlists: make a dlist-link tuple so you can "be the node" by subclassing it. this allows you go put a type on the obj>> slot. ensure that dlist nodes are returned with prev/next pointers set to f so they can be reused. dlist-filter used to work destructively on the dlist, make a new dlist instead because the combinator relied on using prev/next of deleted nodes.
basis/dlists/dlists-tests.factor
basis/dlists/dlists.factor