Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005825OCamlOCaml generalpublic2012-11-14 16:022015-12-11 19:21
Assigned Tomeyer 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version4.01.0+dev 
Summary0005825: Toplevel: please add a primitive to compile a file as a module Test.
DescriptionThis bugs is a follow-up to a thread of the caml-list: [^] .html

While testing/debugging some code with the OCaml toplevel, one may want to "#load" a module while keeping access to functions hidden by a .mli

The primitive "#use" already allow this, but when loading multiple files the "module-as-namespace" paradigm is not usable.

Here is a small patch that introduces a new primitive: #mod_use ""
It behaves as '#use ""', but wrap the content of '' in a module 'File'.
TagsNo tags attached.
Attached Filespatch file icon mod_use.patch [^] (3,280 bytes) 2012-11-14 16:02 [Show Content]

- Relationships
duplicate of 0003121closedgasche toplevel to provide #use like command with #load semantics 

-  Notes
meyer (developer)
2012-11-18 17:17

Patch looks good and applied, commit 13097 on trunk, thanks!

Documentation will still need updating so not closing it down yet.
meyer (developer)
2012-11-19 01:11

Now the documentation also up to date in commit 13098.

- Issue History
Date Modified Username Field Change
2012-11-14 16:02 hnrgrgr New Issue
2012-11-14 16:02 hnrgrgr File Added: mod_use.patch
2012-11-18 17:17 meyer Note Added: 0008524
2012-11-18 17:18 meyer Assigned To => meyer
2012-11-18 17:18 meyer Status new => assigned
2012-11-19 01:11 meyer Note Added: 0008525
2012-11-19 01:12 meyer Status assigned => resolved
2012-11-19 01:12 meyer Resolution open => fixed
2013-06-13 07:19 meyer Fixed in Version => 4.01.0+dev
2013-07-29 07:38 gasche Relationship added duplicate of 0003121
2015-12-11 19:21 xleroy Status resolved => closed

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker