From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Israelsson Tampe Newsgroups: gmane.lisp.guile.devel Subject: trying to make fmt work under guile Date: Thu, 30 Dec 2010 23:26:54 +0100 Message-ID: <201012302326.54381.stefan.itampe@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1293747976 23974 80.91.229.12 (30 Dec 2010 22:26:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 30 Dec 2010 22:26:16 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Dec 30 23:25:59 2010 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PYQwX-0002Rf-LO for guile-devel@m.gmane.org; Thu, 30 Dec 2010 23:25:57 +0100 Original-Received: from localhost ([127.0.0.1]:54670 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PYQwX-0007qp-5F for guile-devel@m.gmane.org; Thu, 30 Dec 2010 17:25:57 -0500 Original-Received: from [140.186.70.92] (port=50500 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PYQwT-0007qi-Ua for guile-devel@gnu.org; Thu, 30 Dec 2010 17:25:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PYQwS-00015s-TC for guile-devel@gnu.org; Thu, 30 Dec 2010 17:25:53 -0500 Original-Received: from mail-ey0-f169.google.com ([209.85.215.169]:41474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PYQwS-00015h-OS for guile-devel@gnu.org; Thu, 30 Dec 2010 17:25:52 -0500 Original-Received: by eyh6 with SMTP id 6so2130680eyh.0 for ; Thu, 30 Dec 2010 14:25:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:mime-version:content-type:content-transfer-encoding :message-id; bh=n1bfPZJpdoOLmAZ6BvaquZhldGQzqIHWO6j/eSb1dsw=; b=xrMwJi31nLU8O6U1fpLZvtrvZzq7QLjr3sgE5trXiW1bb4phxVWulArJ3nbGUfmwbj alOa3cR5TVFGayGiZol+Alffeyhno0fQOsY97VmWcZ6Cb8PwSQnu+PpO3v/WRGJfVwv1 8hBfr2bUnAh2qp3Nm5azWU7RevHkYkq60jilo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; b=SsA6E/KjCqjxsXdeHLcPk5Lw1RA5ZWewQC0kJbY0X010ATEdZpGyb2wDtb65obc8UF t3i0XiMjev0un2fOeVyZVkE8rFU33XHJ7xm1nXI8F7LDBnRr8Ki52E8JCKUkefIzlQCq 8LpI7uSiG1WnQ9k7BlM645TZsWXIhiN5Zr8vg= Original-Received: by 10.213.4.78 with SMTP id 14mr8118539ebq.94.1293747951463; Thu, 30 Dec 2010 14:25:51 -0800 (PST) Original-Received: from linux-s4gz.localnet (1-1-1-39a.veo.vs.bostream.se [82.182.254.46]) by mx.google.com with ESMTPS id t5sm11790007eeh.20.2010.12.30.14.25.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 30 Dec 2010 14:25:50 -0800 (PST) User-Agent: KMail/1.13.5 (Linux/2.6.34.7-0.5-desktop; KDE/4.4.4; x86_64; ; ) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11281 Archived-At: Hi, I'm trying to package the fmt library. And have it compiling it's working on a simple test case. (I'll need it to produce nicely formatted c-code) I still need to export some symbols. But it seams to work at least in initiall test eh, actually just one simple test case :-). To note. 1. I need srfi-66 for unicode stuff, but can't find it in guile. any clues? 2. I tryied (ice-9 optargs) but that failes and I had to use the supplied fmt-0.6/let-optionals.scm This to make LET-OPTIONALS* work properly. It seams that the ice-9 version don't allow define's in it's declaration part of the body. It doesn't help to put the code inside a body form. The error message is, ;;; WARNING: compilation of /home/stis/src/guile/module/language/clambda/fmt.scm failed: ;;; key syntax-error, throw args (macroexpand "~a in subform `~s' of `~s'" ;;; ("definition in expression context" write-positive (lambda (n) (let* ((m+e ;;; (mantissa+exponent (exact->inexact n))) Is this a bug? Happy new year Stefan