[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-hackers] csc -profile has problems
From: |
Jörg F . Wittenberger |
Subject: |
[Chicken-hackers] csc -profile has problems |
Date: |
Tue, 1 Mar 2016 12:11:16 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux armv7l; rv:38.0) Gecko/20100101 Icedove/38.4.0 |
Hi,
csc -profile bails out on some code it otherwise compiles.
So far the smallest example I have is the reference implementation of
srfi-35. It complains that really-make-condition-type is called with
the wrong number of arguments right here:
(define-condition-type &message &condition
message-condition?
(message condition-message))
Another example is in the comparators egg:
(define (binary<? comparator a b)
((comparator-ordering-predicate comparator) a b))
(define (binary>? comparator a b)
(binary<? comparator b a))
Here it claims binary<? being called with the wrong number of arguments.
In srfi-110
(define (even-and-op-prefix? op lyst)
(cond
((null? lyst) #t)
((not (pair? lyst)) #f)
((not (equal? op (car lyst))) #f) ; fail - operators not the same
((not (pair? (cdr lyst))) #f) ; Wrong # of parameters or improper
(else (even-and-op-prefix? op (cddr lyst)))))
it is even-and-op-prefix? with wrong number of arguments.
Also the ssax code has an name-compare which get flagged that way.
I have no good idea what the reason could be. All cases I found so far
seem to have one thing in common: the called procedure is very simple
(often it is the constructor from a define-record-type). Maybe that
hints somewhere.
Cheers
/Jörg
- [Chicken-hackers] csc -profile has problems,
Jörg F . Wittenberger <=