Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax extension for loading .ml #4432

Closed
vicuna opened this issue Oct 26, 2007 · 3 comments
Closed

Syntax extension for loading .ml #4432

vicuna opened this issue Oct 26, 2007 · 3 comments

Comments

@vicuna
Copy link

vicuna commented Oct 26, 2007

Original bug ID: 4432
Reporter: hirokawa
Assigned to: @bobzhang
Status: closed (set by @xavierleroy on 2015-12-11T18:21:21Z)
Resolution: open
Priority: normal
Severity: feature
Version: 3.10+dev
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues
Monitored by: mehdi @glondu hirokawa

Bug description

It would be very helpful for users of the OCaml interpreter if Camlp4 had a syntax extension for loading a .ml file (and .mli file) as a module (with signature):

LOAD "a.ml";;

module A : sig val a1 : int end

A.a1;;

  • : int = 1

Attached (load.ml) is its implementation.

File attachments

@vicuna
Copy link
Author

vicuna commented Aug 22, 2012

Comment author: @bobzhang

This will make LOAD a keyword, it will definitely breaks existing code. A quotation with an another Lexer module should be used.

@vicuna
Copy link
Author

vicuna commented Jul 1, 2013

Comment author: @bobzhang

in 4.1, #mod_use directive is introduced

@vicuna
Copy link
Author

vicuna commented Aug 1, 2013

Comment author: berenger

Is it not possible to backport it to the current release also
(4.00.1).
This directive should have been here for years!
It's so useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant