chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] [PATCH] Fix #1506 by detecting import of module be


From: Peter Bex
Subject: Re: [Chicken-hackers] [PATCH] Fix #1506 by detecting import of module being defined
Date: Sun, 7 Apr 2019 09:57:37 +0200
User-agent: NeoMutt/20170113 (1.7.2)

On Sun, Apr 07, 2019 at 04:05:53AM +0000, elf wrote:
> Question: does it handle circular imports? Is 
> module a -> import b
> module b -> import a 
> an error? Should it be?

AFAIK this isn't possible because you can't import modules
that the compiler doesn't know about.  So when a imports b,
you will get a message that b does not exist (yet).

The issue with a module importing itself was that the module
is registered as soon as the (module foo ...) is seen, which
meant it was able to import itself.

Cheers,
Peter

Attachment: signature.asc
Description: PGP signature


reply via email to

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