From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: Re: {debug,read,readline,print}-{set!,disable,enable}, etc. Date: Fri, 17 Jun 2011 18:09:14 +0200 Message-ID: <871uys8mol.fsf@pobox.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1308327967 27312 80.91.229.12 (17 Jun 2011 16:26:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Jun 2011 16:26:07 +0000 (UTC) Cc: bug-guile@gnu.org To: Wolfgang J Moeller Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Jun 17 18:26:02 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QXbru-0002Wp-0p for guile-bugs@m.gmane.org; Fri, 17 Jun 2011 18:26:02 +0200 Original-Received: from localhost ([::1]:46765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXbrs-0000L1-EJ for guile-bugs@m.gmane.org; Fri, 17 Jun 2011 12:26:00 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXbbm-0003sJ-KV for bug-guile@gnu.org; Fri, 17 Jun 2011 12:09:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXbbk-0004VM-Bg for bug-guile@gnu.org; Fri, 17 Jun 2011 12:09:22 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:60405 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXbbk-0004VE-19 for bug-guile@gnu.org; Fri, 17 Jun 2011 12:09:20 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 710A94865; Fri, 17 Jun 2011 12:11:29 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=Ll/DMJml0P0CRMSJHsaPqvZlO/U=; b=e2AZ3Y PwlcGurueHHvsylRsTK/kvncRqKMsvezvjGeC9jR2exSpPWc2o19zlkdXEFwnZgB tXI3ksvFJIWBjmD/O9Y9GDGt6Dl3iLbB2gTprRhHezZ+jefx7z5EOx/17VJdm8Jj L5k9QY7LOUD/mISM5Ndj0Nlr755qK7/6yJ5Ig= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=SB7lLzsPTpgfeXoxNhdjDLowgFyqjB+V Ye2QD3tGq6o+dkyH4AIjDUgoMN9VNDssBA8Pxubv+uj+SpbzAN0HC6jiFw3boZqg Q57QsTKRcUGMEr4zWcf/asVOyKbajjgxKmyycHG6X6GjvmoM9XNZ97b+IRwAU3kS FkiVmnibsQI= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 69E9F4864; Fri, 17 Jun 2011 12:11:29 -0400 (EDT) Original-Received: from badger (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 920944863; Fri, 17 Jun 2011 12:11:28 -0400 (EDT) In-Reply-To: (Wolfgang J. Moeller's message of "Sun, 22 May 2011 13:53:00 +0200 (CEST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Pobox-Relay-ID: 753F48CC-98FC-11E0-8135-5875C023C68D-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5650 Archived-At: Hi Wolfgang, On Sun 22 May 2011 13:53, Wolfgang J Moeller writes: > 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 ?) There is read-and-compile, from system base compile... > 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 ;-) There is `eval-when', which you can use to build the exact thing you need. See "Eval When" in the manual. In the Guile context we encourage the use of modules. > Otherwise, no problems with 2.0.1. Except for a tidbit ... > > "Compiler error message not properly decoded", as in > > | moeller@louix-$ 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. It might have. But fixed, in any case :-) Cheers, Andy -- http://wingolog.org/