The intended error here is "cannot marshal value that is embedded in compiled code" at `raco make` time, because fxvectors are not supported as literals. I'll fix the bytecode writer to check for this case.
Meanwhile, the fact that non-literal values can be coerced to syntax (as long as they don't have to be marshaled) is troublesome, but it's useful enough in interactive situations that we haven't yet committed to closing the loophole. At Wed, 8 May 2019 22:54:52 +0300, Dmitry Pavlov wrote: > Hello, > > I would like to report something that I see as > inconsistent behavior of the bytecode compiler. > The following short program (an artificial minimal > reproducible example) works at first, but fails > after raco make. My OS is Linux. > > > > $ cat one.rkt > #lang racket > > (require (for-syntax syntax/parse racket/fixnum)) > > (define-syntax (macro stx) > (syntax-parse stx > (({~literal macro}) > (let ((v (fxvector 5))) > (with-syntax ((v v)) > (quasisyntax/loc stx > (begin > (define v-name v) > 'OK))))))) > > (macro) > > $ racket one.rkt > 'OK > > $ raco make one.rkt > > $ racket one.rkt > read: bad syntax `#fx' > in: compiled/one_rkt.zo > context...: > read-linklet-or-directory > read-dispatch > read > default-load-handler > standard-module-name-resolver > module-path-index-resolve > [repeats 1 more time] > module-declared? > > > $ racket -v > Welcome to Racket v7.2. > > > Best regards, > > Dmitry > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/c8d25d54-e69e-ba45-9e78-4bd8366f > a51f%40iaaras.ru. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/5cd33760.1c69fb81.1786f.0e47SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/d/optout.