Ticket #158 (new enhancement)

Opened 16 years ago

Feature request: lang/this-package

Reported by: dherman Owned by: cce
Priority: major Milestone:
Component: cce/scheme.plt Keywords:
Cc: Version: (4 1)
Racket Version: 4.1

Description

I need to be able to document PLT languages with planet module paths. I have a private implementation that looks like this:

(define-syntax (lang/this-package stx)
  (syntax-case stx ()
    [(sp)
     (quasisyntax/loc stx
       (SCHEME (UNSYNTAX (hash-lang)) planet #,(build-planet-id stx #f)))]
    [(sp name)
     (identifier? #'name)
     (quasisyntax/loc stx
       (SCHEME (UNSYNTAX (hash-lang)) planet #,(build-planet-id stx #'name)))]))

But I'm now using your package for defmodule/this-package etc, and it would be good to be able to use your package for everything.

Note: See TracTickets for help on using tickets.