Pascal int()
Michael Hudson
mwh21 at cam.ac.uk
Wed Mar 22 09:18:09 EST 2000
jstok at bluedog.apana.org.au (Jason Stokes) writes:
>
> I'm no Lisp expert, but I believe that "set" could be used for this. Eg:
>
> (defun increment (symbol)
> (set symbol
> (add1 (eval (symbol)))
> )
> )
>
> (let ((a 1))
> (increment 'a)
> a)
You'd need a dynamically scoped lisp for that to have a chance
(ie. not Common Lisp or scheme).
Cheers,
M.
--
very few people approach me in real life and insist on proving they are
drooling idiots. -- Erik Naggum, comp.lang.lisp
More information about the Python-list
mailing list