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: 4607 Reporter: monate Assigned to:@damiendoligez Status: closed (set by @damiendoligez on 2008-09-10T15:03:40Z) Resolution: fixed Priority: normal Severity: minor Version: 3.11+dev Fixed in version: 3.11+dev Category: ~DO NOT USE (was: OCaml general) Monitored by: "Julien Signoles"
Bug description
Hello camlers,
Using the files :
===static.ml===
open Dynlink
let () =
try
init ();
loadfile "dyn.cmxs"
with Error e -> Format.printf "%s@." (error_message e)
==dyn-dyn.ml==
Format.printf "HELLO@.";;
and compiling with
ocamlopt -shared -o dyn-dyn.cmxs dyn-dyn.ml
ocamlopt -o test dynlink.cmxa static.ml
./test does not print anything -> initialization of module dyn-dyn.ml is not performed.
If the filename is a legal ocaml module name everything works as expected.
In bytecode everything works as expected.
This can be reproduced with Ocaml 3.11+dev15 Private_abbrevs+natdynlink+lazy_patterns (2008-07-29)
under both Linux/AMD64 and Win32/Mingw.
Thanks for your help.
The text was updated successfully, but these errors were encountered:
Well I would not care if this was an error.
The discrepancy between byte and native code is my only concern. If the compiler enforces this check then it must do it in both modes.
Original bug ID: 4607
Reporter: monate
Assigned to: @damiendoligez
Status: closed (set by @damiendoligez on 2008-09-10T15:03:40Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.11+dev
Fixed in version: 3.11+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: "Julien Signoles"
Bug description
Hello camlers,
Using the files :
===static.ml===
open Dynlink
let () =
try
init ();
loadfile "dyn.cmxs"
with Error e -> Format.printf "%s@." (error_message e)
==dyn-dyn.ml==
Format.printf "HELLO@.";;
and compiling with
ocamlopt -shared -o dyn-dyn.cmxs dyn-dyn.ml
ocamlopt -o test dynlink.cmxa static.ml
./test does not print anything -> initialization of module dyn-dyn.ml is not performed.
If the filename is a legal ocaml module name everything works as expected.
In bytecode everything works as expected.
This can be reproduced with Ocaml 3.11+dev15 Private_abbrevs+natdynlink+lazy_patterns (2008-07-29)
under both Linux/AMD64 and Win32/Mingw.
Thanks for your help.
The text was updated successfully, but these errors were encountered: