chicken-janitors
[Top][All Lists]
Advanced

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

Re: [Chicken-janitors] #1328: (import (only ...)) strange behaviour


From: Chicken Trac
Subject: Re: [Chicken-janitors] #1328: (import (only ...)) strange behaviour
Date: Fri, 25 Aug 2017 12:47:05 -0000

#1328: (import (only ...)) strange behaviour
--------------------------------+---------------------
            Reporter:  caolan   |      Owner:
                Type:  defect   |     Status:  closed
            Priority:  major    |  Milestone:  someday
           Component:  unknown  |    Version:  4.11.0
          Resolution:  invalid  |   Keywords:
Estimated difficulty:           |
--------------------------------+---------------------
Changes (by sjamaan):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 You need {{{use}}} rather than {{{import}}}.  {{{import}}} doesn't load
 code, it only loads the so-called "import library" which registers which
 identifiers are exported by the module.

 This is a bit of a FAQ/pitfall/caveat in CHICKEN 4.  In CHICKEN 5, we've
 made {{{use}}} and {{{import}}} behave identically because it is rarely
 actually useful to only load the import library but not the code.

--
Ticket URL: <https://bugs.call-cc.org/ticket/1328#comment:1>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

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