bug-guile
[Top][All Lists]
Advanced

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

Re: {debug,read,readline,print}-{set!,disable,enable}, etc.


From: Wolfgang J Moeller
Subject: Re: {debug,read,readline,print}-{set!,disable,enable}, etc.
Date: Sun, 22 May 2011 13:53:00 +0200 (CEST)

Hi,

On Fri, 20 May 2011, Andy Wingo wrote:
> On Fri 29 Apr 2011 14:12, Wolfgang J Moeller <address@hidden> writes:
> > In fact, {debug,print,read}-set! are macros that want "option-name" to
> > be a literal symbol, while {debug,read}-{en,dis}able are procedures
> > indeed (apparently taking multiple arguments) that want the
> > "option-name"[s] to be quoted symbol[s].
>
> Indeed; nasty, but it's what we've got.  Fixed the docs.

Thanks.

> > [Noticed while looking for something like V1 (debug-disable 'debug)
> > that might speed up execution.]
>
> It's spelled `--no-debug'; see "Invoking Guile".
>[...]

Oops - didn't notice before at all. Thanks. Only a minor speed-up, indeed.

Invocation options ... you don't think "scheme-shell", do you?

As regards (primitive-load) - it's only after our discussion that I realized
that without file-compilation GUILE seems to always (slowly) interprete the
LOADed code. Makes me ask for LISP's (LOAD ... :COMPILING T) [independent of
invocation-time settings] again ... (maybe via compiling to /dev/null ?)

Any provision for C-style #if ... #include ... (of, say, macros
required by the subsequent code)? (LOAD) gets evaluated too late;
(INCLUDE) of definitions isn't allowed within (IF); (EVAL) again
comes too late.
(I did notice your major changes to "psyntax", but so far
I don't see how they'd help me. No problems with them either ;-)

Otherwise, no problems with 2.0.1. Except for a tidbit ...

"Compiler error message not properly decoded", as in

| address@hidden guile2 -q
| GNU Guile 2.0.1
|[...]
| scheme@(guile-user)> (load "zwp.scm")
| ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
| ;;;       or pass the --no-auto-compile argument to disable.
| ;;; compiling /home/moeller/scm/zwp.scm
| ;;; WARNING: compilation of /home/moeller/scm/zwp.scm failed:
| ;;; key syntax-error, throw_args (#f "definition in expression context" #f #t 
dummy3)
| scheme@(guile-user)>

where "zwp.scm" is the "prelude" snippet that I sent you on April 2.
Pretty sure it didn't look like this in 2.0.0.

Thanks again, best regards,

Wolfgang J. Moeller, Tel. +49 551 47361, wjm<AT>heenes.com
37085 Goettingen, Germany | Disclaimer: No claim intended!
http://www.wjmoeller.de/ -+-------- http://www.heenes.com/



reply via email to

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