Could someone please explain the following seemingly counterintuitive
behavior regarding the r7rs syntax for symbols (symbol #foo is
expressed as |#foo| using r7rs syntax, more info in sec.6.6.6.6 of guile
ref. manual).

When I invoke 'guile -s' on a file containing:

  (read-enable 'r7rs-symbols)
  (display (symbol->string '|#foo|)) (newline)
  (use-modules (test-r7rs))
  (display (symbol->string '|#foo|)) (newline)

guile 2.2 outputs:

  |#foo|
  #foo

Why the discrepancy? The module (test-r7rs) file contains:

  (define-module (test-r7rs))
  (read-enable 'r7rs-symbols)

Essentially, I'm asking why guile displays the symbol incorrectly (|#foo|)
in the first case but correctly (#foo) in the second.

Thanks
Reetinder

Reply via email to