unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Stefan Israelsson Tampe <stefan.itampe@gmail.com>
To: Andy Wingo <wingo@pobox.com>
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: bound identifiers
Date: Mon, 16 Jan 2012 22:56:44 +0100	[thread overview]
Message-ID: <CAGua6m3mRn9YDi3v4MvybPwESTAUzNGBGA50b6C-17L-i+t3Jw@mail.gmail.com> (raw)
In-Reply-To: <87d3ajibga.fsf@pobox.com>

[-- Attachment #1: Type: text/plain, Size: 1475 bytes --]

In syntax parse the racket code stores syntax values inside structs and
then transport them
down the macro chain as argument to macros. Then when unpacking the struct
they are compared
with arguments of syntax values. I think that this is the reason. I tried
to experiment with
psyntax macro expander to poke inside structs and that solved this issue.
But on the other hand
even worse problem appeared.

What I did now was to manually clean the syntax values e.g. remove #f and
shift from the
syntax value and this gave the best result.

As you see, it's just wild west to get the racket code working.

Mayby just writing a version from scratch would be better.

/Stefan

On Mon, Jan 16, 2012 at 10:28 PM, Andy Wingo <wingo@pobox.com> wrote:

> On Mon 16 Jan 2012 20:46, Stefan Israelsson Tampe <stefan.itampe@gmail.com>
> writes:
>
> > why are these two not equal in the sense of bound-identifier=?
> >
> > #(syntax-object x ((top) #(ribcage () () ()) #(ribcage () () ())
> #(ribcage #(x) #((m1104 top)) #("i1105"))) (hygiene guile-user))
> > #(syntax-object x ((#f top) shift #(ribcage () () ()) #(ribcage #(x)
> #((m1104 top)) #("i1105"))) (hygiene guile-user)))
>
> One has been anti-marked and the other has not?  Meaning that one was
> made up by your syntax expander, and the other and the other came in as
> part of the form.
>
> But that's not the right question or answer.  Can you should where these
> identifiers come from?
>
> Andy
> --
> http://wingolog.org/
>

[-- Attachment #2: Type: text/html, Size: 2043 bytes --]

  reply	other threads:[~2012-01-16 21:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-16 19:46 bound identifiers Stefan Israelsson Tampe
2012-01-16 21:28 ` Andy Wingo
2012-01-16 21:56   ` Stefan Israelsson Tampe [this message]
2012-01-16 23:30     ` Andy Wingo
2012-01-17 15:33       ` Stefan Israelsson Tampe
2012-01-16 22:01   ` Andy Wingo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGua6m3mRn9YDi3v4MvybPwESTAUzNGBGA50b6C-17L-i+t3Jw@mail.gmail.com \
    --to=stefan.itampe@gmail.com \
    --cc=guile-devel@gnu.org \
    --cc=wingo@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).