[Chicken-users] CHICKEN_INCLUDE_PATH and require
Hi I'm confused about the `require' semantics for compiled and interpreted code and regarding to CHICKEN_INCLUDE_PATH. Here's an example: $ pwd /home/mario/tmp/load $ ls -l total 4 -rw-r--r-- 1 mario mario 11 Out 5 09:38 a.scm drwxr-xr-x 2 mario mario 120 Out 5 09:48 subdir $ cat a.scm (print 'a) $ cd subdir/ $ ls -l total 4 -rw-r--r-- 1 mario mario 13 Out 5 09:40 b.scm $ cat b.scm (require 'a) $ CHICKEN_INCLUDE_PATH=/home/mario/tmp/load csi -s b.scm a $ csc b.scm $ CHICKEN_INCLUDE_PATH=/home/mario/tmp/load ./b Error: (require) cannot load extension: a Call history: b.scm:1: require-- Why doesn't the compiled code work? Best wishes. Mario -- http://parenteses.org/mario ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Backslash-symbol changed from \ to \\ between 4.5.0 and 4.6.0
In 4.5.0, this sufficed to create a backslash symbol: '\ whereas in 4.6.0, we need: '\\ This change screws up a scheme-latex transformer I had written, unfortunately; can we revert to the old behaviour, or can I revert locally by using `set-read-syntax!'? ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Backslash-symbol changed from \ to \\ between 4.5.0 and 4.6.0
Quoth Peter Danenberg on Pungenday, the 59th of Bureaucracy: [C]an we revert to the old behaviour, or can I revert locally by using `set-read-syntax!'? Fortunately or unfortunately, this hideous hack suffices to bring back the 4.5.0 behaviour without permanently modifying the global read-table: (define (call-with-read-syntax char-or-symbol proc thunk) (let ((old-read-table (copy-read-table (current-read-table (dynamic-wind (lambda () (void)) (lambda () (set-read-syntax! char-or-symbol proc) (thunk)) (lambda () (set! current-read-table (lambda () old-read-table)) ;;; 4.5.0 behaviour: '\ = '\ (call-with-read-syntax #\\ (lambda (port) '\\) (lambda () (with-input-from-string '\\ read))) ;;; 4.6.0 behaviour: '\\ = '\ (with-input-from-string ' read) I didn't see any mention of this change to the reader in NEWS; was it intentional? ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users