"arc.arc" has 'diskvar for variables and 'disktable for tables. This is the same thing for templates: (mac disktem (var tem file)
(w/uniq (gf gv)
`(fromdisk ,var ,file (inst ',tem) [temload ',tem _] (fn (,gv ,gf)
(writefile (tablist ,gv) ,gf)))))
It's working on preliminary tests, but I need to do more, so let me flag its reliability "tentative" for the moment.Questions: - Is this a case that could have used akkartik's 'defgeneric [1] or aw's 'extend [2] ? - Is palsecam's 'ptable [3] only for tables or does it work with other types as well? [1] http://arclanguage.org/item?id=11779 [2] http://awwx.ws/extend0 [3] http://arclanguage.org/item?id=10664 |