REPL Bug

14 views
Skip to first unread message

vii

unread,
Jul 11, 2010, 9:35:27 AM7/11/10
to Lisphp
I try write this in repl-mode

(define (test i)
(+ i i))

... and ...

PHP Fatal error: Nesting level too deep - recursive dependency? in /
home/vitalykatorgin/lisphp/lis.php on line 108

홍민희

unread,
Jul 11, 2010, 11:20:12 AM7/11/10
to lis...@googlegroups.com
Thanks for your bug report. This is a REPL's value representation problem. There's an ad hoc solution for the problem: avoid representing the created function using a meaningless `do` form equivalent to Scheme's `begin`.

>>> (do (define (test i) (+ i i)) nil)
==> NULL
>>> (test 5)
==> 10

Reply all
Reply to author
Forward
0 new messages