Expected behavior. Syntax properties and source locations are stripped from syntax objects when bytecode is marshaled (eg, to a .zo file). See the first paragraph of http://docs.racket-lang.org/reference/stxprops.html.

Ryan


On 08/11/2015 02:47 PM, Stephen Chang wrote:
file A.rkt:

#lang racket
(require (for-syntax syntax/parse))
(provide test)
(define-syntax (test stx)
   (syntax-parse stx
     [_
      #:when (displayln (syntax-property #'[1] 'paren-shape))
      #'(void)]))
(test)

file B.rkt:

#lang racket
(require "A.rkt")
(test)

Running B.rkt in drracket (version 6.2.900.6) produces:
[
#f

Is this expected behavior or a bug?


--
You received this message because you are subscribed to the Google Groups "Racket 
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-dev/55CA4917.5040505%40ccs.neu.edu.
For more options, visit https://groups.google.com/d/optout.

Reply via email to