guile-devel
[Top][All Lists]
Advanced

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

cannot compile: srfi-10 define-reader-ctor 'hash '#,(


From: Jan Nieuwenhuizen
Subject: cannot compile: srfi-10 define-reader-ctor 'hash '#,(
Date: Fri, 04 Jul 2014 14:30:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Hi,

The attached hash.scm works fine with guile-1.8.  With Ubuntu 14.04's
guile-2.0.9 and latest GIT master

    5ded849 Convert slot allocation to use intsets

I do get output but compilation fails:

    $ guile  ./hash.scm
    ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
    ;;;       or pass the --no-auto-compile argument to disable.
    ;;; compiling /home/janneke/vc/verum/development/language/asd/./hash.scm
    ;;; WARNING: compilation of 
/home/janneke/vc/verum/development/language/asd/./hash.scm failed:
    ;;; ERROR: unknown hash-comma tag  hash
    cat

Is this a bug in the documentation, in guile, or ...?

I need to produce a json file from a guile tree that currently
looks like

   ((event0 (state (var .  value) ...) (trace (loc0 loc1 ...))) ... )

contents of the tree are symbols and numbers.  I hacked guile-json to
grok and produce symbols too.  So far so good for lists.  

However, json wants hash maps.  SRFI-10 hash looked like a nice ascii
data exchange format for hash maps.  (I would like to have pretty-print
use that notation too, as an alternative for the opaque

   #<hash-table b87480 0/31>

I get a suspicious feeling that I'm doing something very wrong if no one
else is using this, please enlighten me?

Greetings,
Jan

Attachment: hash.scm
Description: Binary data

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | AvatarĀ®  http://AvatarAcademy.nl  

reply via email to

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