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

Troubles with marshaled/unmarshaled exception #8396

Closed
vicuna opened this issue Dec 4, 2003 · 1 comment
Closed

Troubles with marshaled/unmarshaled exception #8396

vicuna opened this issue Dec 4, 2003 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Dec 4, 2003

Original bug ID: 1957
Reporter: administrator
Status: closed (set by @xclerc on 2009-09-16T12:45:41Z)
Resolution: won't fix
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)
Has duplicate: #8090

Bug description

Hello,

I found strange behavior of pattern matching of
marshaled/unmarshaled exception.

Next code describe problem:

let e = Failure "test";;
let e' = Marshal.from_string (Marshal.to_string e []) 0;;
let print_fun exc =
  match exc with
    Failure _ -> print_endline "Matching OK"
  | exc -> print_endline "Matching Fail";;

print_fun e;;
print_fun e';;
   Printf.printf "e = e' is %b\n" (e=e');;

Output:

Matching OK
Matching Fail
   e = e' is true

So second call print missing value.

--
Artem Prysyznuk
tema@sit.kiev.ua

@vicuna
Copy link
Author

vicuna commented Dec 8, 2003

Comment author: administrator

see also #8399
should document the problem -DD

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