You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 6857 Reporter: @sliquister Assigned to:@garrigue Status: closed (set by @xavierleroy on 2016-12-07T10:49:11Z) Resolution: fixed Priority: normal Severity: minor Version: 4.02.1 Target version: 4.02.3+dev Fixed in version: 4.02.2+dev / +rc1 Category: ~DO NOT USE (was: OCaml general) Tags: junior_job Monitored by:@gasche
Bug description
MODULE appears to be [String.capitalize (String.chop_suffix FILE)], which is not the current module when using -o to set a module name different than the current file name.
But its documentation is: MODULE returns the module name of the file being parsed by the compiler.
So it looks like either the compiler or the documentation should be fixed (and preferably the compiler I think).
Steps to reproduce
These commands should output "Foo" twice but instead output "A" and "Argh".
Original bug ID: 6857
Reporter: @sliquister
Assigned to: @garrigue
Status: closed (set by @xavierleroy on 2016-12-07T10:49:11Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.02.1
Target version: 4.02.3+dev
Fixed in version: 4.02.2+dev / +rc1
Category: ~DO NOT USE (was: OCaml general)
Tags: junior_job
Monitored by: @gasche
Bug description
MODULE appears to be [String.capitalize (String.chop_suffix FILE)], which is not the current module when using -o to set a module name different than the current file name.
But its documentation is:
MODULE returns the module name of the file being parsed by the compiler.
So it looks like either the compiler or the documentation should be fixed (and preferably the compiler I think).
Steps to reproduce
These commands should output "Foo" twice but instead output "A" and "Argh".
cd /tmp
rm -f .cm
echo '
let () = Printf.printf "%S\n%!" MODULE
#1 "argh.p"
let () = Printf.printf "%S\n%!" MODULE
' > a.ml
ocamlopt -c -o foo a.ml
ocamlopt foo.cmx
./a.out
The text was updated successfully, but these errors were encountered: