On Tue, Feb 12, 2013 at 3:26 AM, Daniel Hartwig wrote:
> On 12 February 2013 16:42, Andy Wingo wrote:
>> On Tue 12 Feb 2013 09:15, Akop Pogosian writes:
>>
>>> (define-macro when
>>> (lambda (test . branch)
>>> `(if ,test
>>>
I am having problems getting simple define-macro to work in Guile 2.
For example, this:
(define-macro when
(lambda (test . branch)
`(if ,test
(begin ,@branch
will give an error:
While compiling expression:
ERROR: Syntax error:
unknown file:8:0: source expression failed to mat
(define (zeros n)
;; Make list of n zeros
(define (zeros-iter n lst)
(if (= n 0)
lst
(zeros-iter (- n 1)
(cons 0 lst
(zeros-iter n '()))
Results:
guile> (apply + (zeros (expt 10 3)))
$2 = 0
guile> (apply + (zeros (expt 10 4)))
$3 = 0
guile> (ap
On Wed, Jan 9, 2013 at 3:57 PM, Ludovic Courtès wrote:
> Hi!
>
> Akop Pogosian skribis:
>
>> # ERROR: In procedure load-extension:
>> # ERROR: In procedure dynamic-link: file: "libguilereadline-v-18",
>> message: "The specified module could not be fo
Should this be reported as a Guile bug?
I have built Guile 2.0.7 in a recent version of Cygwin environment
under Windows 7. Readline support doesn't work. E.g.:
# $ guile --version
# guile (GNU Guile) 2.0.7
# ...
# $ guile -c "(use-modules (ice-9 readline))"
This gives a long trace output endin