On Mon, Dec 28, 2015 at 10:46:34PM +0100, Christophe Gragnic wrote:
> Hi all,
> Sorry for this cryptic subject. I couldn't find a better one.
> 
> So here is a snippet:
> http://pastebin.com/ydJj2DUU

BTW, another issue:

It would be wise to stick with the PicoLisp coding conventions, to make
things more readable. This concerns capitalizing locally bound symbols
and proper indentation. With them, you code would be more like (not
tested):

   (println
      (('((Code)  # The symbol 'Code is bound to X only once.
               ('((Gen) (Gen Gen))
                  '((Gen)
                     (println Code)  # See the output from here.
                     ('((Partial)
                           (list
                              '(N)
                              (list 'if '(=0 N) 1 (list '* 'N (list Partial '(- 
N 1)))) ) )
                        (list (cons 'quote Gen) (cons 'quote Gen)) ) ) ) )
            'X )
         5 )  # (fact 5) is correctly computed then printed.
      )

♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to