| Anonymous | Login | Signup for a new account | 2013-05-25 09:14 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
| 0005825 | OCaml | OCaml general | public | 2012-11-14 16:02 | 2012-11-19 01:12 | |||||||
| Reporter | hnrgrgr | |||||||||||
| Assigned To | meyer | |||||||||||
| Priority | normal | Severity | feature | Reproducibility | N/A | |||||||
| Status | resolved | Resolution | fixed | |||||||||
| Platform | OS | OS Version | ||||||||||
| Product Version | ||||||||||||
| Target Version | Fixed in Version | |||||||||||
| Summary | 0005825: Toplevel: please add a primitive to compile a file test.ml as a module Test. | |||||||||||
| Description | This 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'. | |||||||||||
| Tags | No tags attached. | |||||||||||
| Attached Files | ||||||||||||
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 |
| Copyright © 2000 - 2011 MantisBT Group |