[racket-dev] module->language-info and submodules

From: Vincent St-Amour (stamourv at ccs.neu.edu)
Date: Fri Feb 1 14:51:19 EST 2013

In all the cases I've tried, `module->language-info' returns `#f' when
passed a submodule path. Is that the intended behavior? If so, is there
a way to know which language a submodule is written in?

I've observed the same thing with `module-compiled-language-info'.

An example program is below.

Vincent



#lang racket

(displayln ; prints: #(racket/language-info get-info #f)
 (module->language-info
  '(lib "math/private/matrix/untyped-matrix-arithmetic")
  #t))
(displayln ; prints: #f
 (module->language-info
  ;; (module typed-multiply-defs typed/racket/base ...)
  '(submod (lib "math/private/matrix/untyped-matrix-arithmetic")
           typed-multiply-defs)
  #t))

Posted on the dev mailing list.