From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Price Newsgroups: gmane.lisp.guile.devel Subject: Re: export macro symbol with @ failed Date: Mon, 13 Jun 2011 11:53:33 +0100 Message-ID: References: <1307937273.3005.3.camel@Renee-desktop> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1307962129 20164 80.91.229.12 (13 Jun 2011 10:48:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2011 10:48:49 +0000 (UTC) Cc: guile-devel@gnu.org To: NalaGinrut@gmail.com Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jun 13 12:48:46 2011 Return-path: Envelope-to: guile-devel@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 1QW4hJ-0007W2-Jq for guile-devel@m.gmane.org; Mon, 13 Jun 2011 12:48:45 +0200 Original-Received: from localhost ([::1]:46054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QW4hI-0004b0-Jx for guile-devel@m.gmane.org; Mon, 13 Jun 2011 06:48:44 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QW4hA-0004ae-AT for guile-devel@gnu.org; Mon, 13 Jun 2011 06:48:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QW4h8-0004cv-0L for guile-devel@gnu.org; Mon, 13 Jun 2011 06:48:35 -0400 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:38235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QW4h7-0004cT-6D for guile-devel@gnu.org; Mon, 13 Jun 2011 06:48:33 -0400 Original-Received: by wwb39 with SMTP id 39so3861954wwb.30 for ; Mon, 13 Jun 2011 03:48:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=k/whDD3OoTXBZUTc4Q5oQHJi55mDpUfRVWIXN/xb7+s=; b=Yl1GxSOH7iddxudVK4/qCjkrHcx/V/sUovXVTWVGL0lhDbQNrPQC9NL7pm8WfYT/Hh yV7QOJ05gn/nrfafYwhcQ1NOO714oYCaXp8nTQN7ykS1TYVP68UXNITA9i8iegXU+ZrS t818Q5fXtVxrLVxlsKmtWZFjKKcL6WE33615E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=NapKcswuhL8yyTK6SpXVJ2XKovniwKruNScfu70pkNpvOIHly6AcgYcqsCtLb7T2Wf mkPjM0DG7ZdHz8C6ome7u4PNANjBoSc/ROdm5oVc3OEgaWga3qGmA1jWPoeREDX3yoML 0SyH12hOWf7dcHrWPu8PoiqqFtNGl15Q6/rCQ= Original-Received: by 10.216.37.78 with SMTP id x56mr4925914wea.27.1307962111385; Mon, 13 Jun 2011 03:48:31 -0700 (PDT) Original-Received: from Kagami (host109-153-23-149.range109-153.btcentralplus.com [109.153.23.149]) by mx.google.com with ESMTPS id g2sm2805817weg.14.2011.06.13.03.48.28 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Jun 2011 03:48:30 -0700 (PDT) In-Reply-To: <1307937273.3005.3.camel@Renee-desktop> (nalaginrut@gmail.com's message of "Mon, 13 Jun 2011 11:54:33 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.49 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:12568 Archived-At: nalaginrut writes: > hi all, I got a problem with @. > It's OK when I export procedure with @: > ============== > (define aaa (@ (rnrs) make-bytevector)) > ============== > > but it'd failed if exported a macro. > ============================ > scheme@(guile-user)> (define aaa (@ (rnrs) unless)) > While compiling expression: > ERROR: Syntax error: > unknown location: source expression failed to match any pattern in form > unless > ============================ > > is it a bug? I don't think so. The second form would be equivalent to (define aaa unless) if unless was imported by the module, and this is also an error because unless is not an identifier syntax. If I were you I'd (use-modules (rnrs control)) or (import (rnrs control)) instead. -- Ian Price "There are only two hard problems in Computer Science: cache invalidation and naming things." - Phil Karlton