chicken-janitors
[Top][All Lists]
Advanced

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

Re: #1771: Except specificier in imports


From: Chicken Trac
Subject: Re: #1771: Except specificier in imports
Date: Fri, 16 Jul 2021 11:17:12 -0000

#1771: Except specificier in imports
---------------------------------------+--------------------
            Reporter:  Idiomdrottning  |      Owner:  (none)
                Type:  defect          |     Status:  new
            Priority:  major           |  Milestone:  5.3
           Component:  unknown         |    Version:
          Resolution:                  |   Keywords:
Estimated difficulty:                  |
---------------------------------------+--------------------
Changes (by sjamaan):

 * milestone:  someday => 5.3


Old description:

> Note: this is with the patch for #1757 applied, for the future 5.3.0.
>
> Here is the issue. If this is an egg,
>
> cakes.scm:
>
> (module cakes ()
> (import scheme (chicken module) match-generics)
> (reexport
>  (rename scheme (define define-og))
>  (rename match-generics (define-dx define))))
>
> cakes.egg
>
>  ((synopsis "A min via for import except")
>   (components (extension cakes)))
>
> And here is a file that uses that egg:
>
>  (import (except cakes define))
>  (define (lamp x) 19)
>  (define (lamp x y) 21)
>  (+ (lamp 13 41)
>     (lamp 12))
>
> The expected behavior is for this to bork or crash.
>
> Instead it evals to 40, as if we had imported
>
>  (import (except cakes define))

New description:

 Note: this is with the patch for #1757 applied, for the future 5.3.0.

 Here is the issue. If this is an egg,

 cakes.scm:

 (module cakes ()
 (import scheme (chicken module) match-generics)
 (reexport
  (rename scheme (define define-og))
  (rename match-generics (define-dx define))))

 cakes.egg

  ((synopsis "A min via for import except")
   (components (extension cakes)))

 And here is a file that uses that egg:

  (import (except cakes define))
  (define (lamp x) 19)
  (define (lamp x y) 21)
  (+ (lamp 13 41)
     (lamp 12))

 The expected behavior is for this to bork or crash.

 Instead it evals to 40, as if we had imported

  (import (only cakes define))

--

-- 
Ticket URL: <https://bugs.call-cc.org/ticket/1771#comment:2>
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]