Summary
module-environment is broken for non-primitive modules
Metadata
- Id: f09c22c2a91f78a64e86bff1fae3e4bd0ac63829
- Trac id: 1186
- Type: defect
- Reporter: evhan
- Owner:
- Cc:
- Status: closed
- Component: core libraries
- Estimated difficulty:
- Resolution: fixed
- Priority: major
- Milestone: 4.11.0
- Version: 4.9.x
- Changetime: 2015-09-26 10:39:55 UTC
- Created: 2015-04-26 07:46:26 UTC
- Keywords: modules environments
Description
$ csi -p "(module-environment 'extras)" #<environment extras> $ csi -p "(module-environment 'test)" Error: (car) bad argument type: #f
This appears to happen because non-primitive modules never have their "saved-environments" field set. I would expect something like this code in ##sys#register-primitive-module to appear in ##sys#register-compiled-module, but there is no such assignment.