Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005825OCamlOCaml generalpublic2012-11-14 16:022013-07-29 07:38
Reporterhnrgrgr 
Assigned Tomeyer 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version4.01.0+dev 
Summary0005825: Toplevel: please add a primitive to compile a file test.ml as a module Test.
DescriptionThis bugs is a follow-up to a thread of the caml-list:

  https://sympa.inria.fr/sympa/arc/caml-list/2012-11/msg00021 [^] .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 "file.ml"
It behaves as '#use "file.ml"', but wrap the content of 'file.ml' 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 0003121resolvedgasche toplevel to provide #use like command with #load semantics 

-  Notes
(0008524)
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.
(0008525)
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


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker