chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] Re: #451: Unexpected warning using define-values at t


From: Chicken Trac
Subject: [Chicken-janitors] Re: #451: Unexpected warning using define-values at toplevel.
Date: Thu, 16 Dec 2010 17:18:43 -0000

#451: Unexpected warning using define-values at toplevel.
-----------------------+----------------------------------------------------
  Reporter:  alanpost  |       Owner:  felix   
      Type:  defect    |      Status:  assigned
  Priority:  minor     |   Milestone:  4.7.0   
 Component:  compiler  |     Version:  4.6.x   
Resolution:            |    Keywords:          
-----------------------+----------------------------------------------------

Comment(by alanpost):

 Replying to [comment:2 felix]:
 > This is admittedly somewhat confusing. I will try to detect this case or
 remove the warning.

 Does this warning suggest I shouldn't be using '(declare (safe-globals))'
 or any other optimization where I assert I'm not changing the value of my
 top-level module bindings?

 I understand what is happening behind the scenes to make define-values
 work.  I use it several times in genturfa'i to share a lexical environment
 between two or more top-level definitions, and that means they aren't
 *really* top-level bindings as far as the environment is concerned.

 I really only care about the details when they interact with the
 optimizer, however.  Will you comment on that as it regards this warning
 an any (declare ...) flags I might be using?

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/451#comment:3>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

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