unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* Loading mysterium
@ 2010-12-18 15:45 Stefan Israelsson Tampe
  2010-12-21 17:52 ` Ludovic Courtès
  2011-01-18  0:31 ` Andy Wingo
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Israelsson Tampe @ 2010-12-18 15:45 UTC (permalink / raw)
  To: Guile bug

Hi,

Consider macro m1 in module a) is a macro writer macro
In module b) m1 is used to create m2

Now loading module b) and using fails in some circumstances.

What I do now works is to touch a) and b) and then import b)
causing them to be recompiled. Then using b) is fine.

Any clues?

p.s. savannah seams to down, cannot check in or check dup this issue.

/Stefan



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Loading mysterium
  2010-12-18 15:45 Loading mysterium Stefan Israelsson Tampe
@ 2010-12-21 17:52 ` Ludovic Courtès
  2010-12-22 20:37   ` Stefan Israelsson Tampe
  2011-01-18  0:31 ` Andy Wingo
  1 sibling, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2010-12-21 17:52 UTC (permalink / raw)
  To: bug-guile

Hi Stefan,

Stefan Israelsson Tampe <stefan.itampe@gmail.com> writes:

> Consider macro m1 in module a) is a macro writer macro
> In module b) m1 is used to create m2
>
> Now loading module b) and using fails in some circumstances.

Can you provide more details (error messages, etc.), and perhaps an
example to reproduce the problem?

BTW, I think the Right Term is “macro-producing macro”.  ;-)

Ludo’.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Loading mysterium
  2010-12-21 17:52 ` Ludovic Courtès
@ 2010-12-22 20:37   ` Stefan Israelsson Tampe
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Israelsson Tampe @ 2010-12-22 20:37 UTC (permalink / raw)
  To: bug-guile

Thanks for your reply Ludo,

Let me try to debu a little and climbe above the 
noise level. I do have some problems I did not pay attention
to before. I must clean that first.

/Stefan
On Tuesday, December 21, 2010 06:52:23 pm Ludovic Courtès wrote:
> Hi Stefan,
> 
> Stefan Israelsson Tampe <stefan.itampe@gmail.com> writes:
> > Consider macro m1 in module a) is a macro writer macro
> > In module b) m1 is used to create m2
> > 
> > Now loading module b) and using fails in some circumstances.
> 
> Can you provide more details (error messages, etc.), and perhaps an
> example to reproduce the problem?
> 
> BTW, I think the Right Term is “macro-producing macro”.  ;-)
> 
> Ludo’.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Loading mysterium
  2010-12-18 15:45 Loading mysterium Stefan Israelsson Tampe
  2010-12-21 17:52 ` Ludovic Courtès
@ 2011-01-18  0:31 ` Andy Wingo
  1 sibling, 0 replies; 4+ messages in thread
From: Andy Wingo @ 2011-01-18  0:31 UTC (permalink / raw)
  To: Stefan Israelsson Tampe; +Cc: Guile bug

On Sat 18 Dec 2010 10:45, Stefan Israelsson Tampe <stefan.itampe@gmail.com> writes:

> Consider macro m1 in module a) is a macro writer macro
> In module b) m1 is used to create m2
>
> Now loading module b) and using fails in some circumstances.

...the circumstance being, the interface that m2 was expanded against
changed.  In theory this should render the compiled module b) too-old,
with respect to its dependencies -- which is to say, not just b.scm, but
also a.scm (or more generally, the module a).

Guile doesn't handle this properly.  It assumes that if b.go is newer
than b.scm, b.go is usable.  That is not the case, generally.

A proper solution would have b.go encode the modules that it depends
on, and check against those modules.

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-01-18  0:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-18 15:45 Loading mysterium Stefan Israelsson Tampe
2010-12-21 17:52 ` Ludovic Courtès
2010-12-22 20:37   ` Stefan Israelsson Tampe
2011-01-18  0:31 ` Andy Wingo

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).