Hi,
Maybe I should tell my problem as a whole.
I'm implementing a embedded language in PicoLisp.
I'm currently implementing lists with objects:
# Internals
(class +Liste)
(dm T (ELTS)
(=: elts ELTS) )
(dm push> (elt)
(conc (:: elts) (list elt)) ) # this doesn't work
# Interface with the language
(de Liste @
(new '(+Liste) (rest)) )
So is there a mean to implement the problematic line ?
I thought about something like:
(=: elts (append (: elts) elt))
but found it maybe not efficient (recreates the list?).
chri
--
http://profgra.org/lycee/ (site pro)
http://delicious.com/profgraorg (liens, favoris)
https://twitter.com/profgraorg
http://microalg.info
--
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe