This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

parameters not working?


My next issue: parameters appear to work fine in interactive sessions from loaded files, but not in required or compiled files. 

More specifically, if I define a parameter like so:

(define foo (make-parameter #f))

at the top level of a source file and then require or compile that file, I will find at run time that foo is bound to a null pointer.

I assume that this is because requiring or compiling the source file does not execute the toplevel forms (unless it's the main file).

Am I guessing correctly about the execution model of required and compiled code? If so, how are parameters meant to be used in compiled code? 

(Where's eval-when when you need it? ;-)




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]