[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA now supports Guile 2.0! (And an issue).

From: Neil Jerram
Subject: Re: gEDA now supports Guile 2.0! (And an issue).
Date: Sat, 04 Jun 2011 09:42:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Peter TB Brett <address@hidden> writes:

> Can anyone suggest a sensible way to support both? I haven't been able
> to figure out a good feature test... at the moment I've had to resort to
> passing #f. :-(

How about executing a fragment of Guile code that calls display-error,
and seeing if it throws an exception?

scheme@(guile-user)> (false-if-exception (begin (display-error (make-stack #t) 
(current-output-port) "a" "b" '() '()) #t))
$2 = #f
scheme@(guile-user)> (false-if-exception (begin (display-error (stack-ref 
(make-stack #t) 0) (current-output-port) "a" "b" '() '()) #t))
ERROR: In procedure make-stack:
ERROR: In procedure a: b
$3 = #t


reply via email to

[Prev in Thread] Current Thread [Next in Thread]