|
From: | anonymous |
Subject: | [Bug-kawa] [bug #39606] tail calls not performed for top-level functions |
Date: | Mon, 29 Jul 2013 10:32:39 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130626 Firefox/17.0 Iceweasel/17.0.7 |
URL: <http://savannah.gnu.org/bugs/?39606> Summary: tail calls not performed for top-level functions Project: Kawa Submitted by: None Submitted on: Mon 29 Jul 2013 10:32:38 AM UTC Category: Code generation Severity: 3 - Normal Item Group: Run-time exception Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: bash$ wget -q ftp://ftp.gnu.org/pub/gnu/kawa/kawa-1.13.jar bash$ java -jar kawa-1.13.jar #|kawa:1|# (define (e? x) (if (zero? x) #t (o? (- x 1)))) /dev/stdin:1:33: warning - no declaration seen for o? #|kawa:2|# (define (o? x) (if (zero? x) #f (e? (- x 1)))) #|kawa:3|# (map e? '(0 1 2 3 100 101 102 103)) (#t #f #t #f #t #f #t #f) #|kawa:4|# (e? 10000) java.lang.StackOverflowError at gnu.math.IntNum.<init>(IntNum.java:41) at gnu.math.IntNum.make(IntNum.java:82) at gnu.math.IntNum.add(IntNum.java:431) at gnu.kawa.functions.AddOp.apply2(AddOp.java:57) ... at gnu.kawa.functions.ApplyToArgs.applyN(ApplyToArgs.java:137) at gnu.mapping.ProcedureN.apply2(ProcedureN.java:39) at atInteractiveLevel$1.isE(stdin:1) at atInteractiveLevel$1.apply1(stdin:1) at gnu.expr.ModuleMethod.apply1(ModuleMethod.java:192) #|kawa:5|# ;eof _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?39606> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |