chicken-janitors
[Top][All Lists]
Advanced

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

Re: [Chicken-janitors] #1346: define-external variables can't be exporte


From: Chicken Trac
Subject: Re: [Chicken-janitors] #1346: define-external variables can't be exported
Date: Sun, 25 Aug 2019 08:53:04 -0000

#1346: define-external variables can't be exported
---------------------------------+--------------------
            Reporter:  sjamaan   |      Owner:  (none)
                Type:  defect    |     Status:  new
            Priority:  major     |  Milestone:  5.2
           Component:  compiler  |    Version:  4.12.0
          Resolution:            |   Keywords:  ffi
Estimated difficulty:  medium    |
---------------------------------+--------------------

Comment (by felix winkelmann):

 You cannot export a foreign variable - it is not a variable that doesn't
 have normal Scheme semantics, it may be a volatile memory location and any
 Scheme variable bound to this will be completely detached. Note that the
 situation for callback-functions is different, the Scheme part can be
 called externally and refers only internally to the foreign entity (a
 function in this case).

 I recommend to signal an error when a foreign-variable is appearing in an
 export list.

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