From ... From: Erik Naggum Subject: Re: Q: local static variables? Date: 1996/03/17 Message-ID: <3036015280619213@arcana.naggum.no>#1/1 X-Deja-AN: 142960215 references: organization: Naggum Software; +47 2295 0313 newsgroups: comp.lang.lisp [Antonio Leitao] | I was wondering if we can have static local variables. check out `closure' in your friendly Lisp textbook. | We know that we could create an equivalent function IF WE COULD define | the variable 'y' outside the definition of 'test1', something such as: | | (let ((y 0)) | (defun test2 () | (incf y) | y)) precisely. have you tried this? if it fails, which Lisp are you using? # -- the Internet made me do it