[Top][All Lists]

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

[Chicken-janitors] Re: #512: static-modules exports procedure-internal d

From: Chicken Trac
Subject: [Chicken-janitors] Re: #512: static-modules exports procedure-internal definitions (was: Definitions generated by "datatype" egg are invisible to export)
Date: Sat, 19 Feb 2011 18:03:16 -0000

#512: static-modules exports procedure-internal definitions
  Reporter:  sjamaan     |       Owner:  iraikov       
      Type:  defect      |      Status:  assigned      
  Priority:  major       |   Milestone:                
 Component:  extensions  |     Version:  4.6.x         
Resolution:              |    Keywords:  static-modules
Changes (by sjamaan):

  * status:  new => assigned
  * component:  expander => extensions
  * owner:  sjamaan => iraikov
  * milestone:  4.7.0 =>
  * keywords:  expander => static-modules


 Hm, come to think of it, it's probably a bug in static-modules. It does
 something similar to:

 (module foo
   (my-datatype? Sym Sym+Str)

   (import chicken scheme)
   (use datatype)

   (define (some-procedure)
     (define-datatype my-datatype my-datatype?
       (Sym (id symbol?))
       (Sym+Str (id symbol?) (s string?)))))

 I don't think this should work (defining stuff inside a procedure and then
 exporting it like it was defined in the module's toplevel, ie outside that

 My hunch is that this worked before because of the bug that got fixed in

 I'm assigning this to Ivan and changing the ticket title to reflect that
 it's actually most likely a bug in static-modules and not in datatype or
 Chicken core.

Ticket URL: <>
Chicken Scheme <>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

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