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: 1463 Reporter: administrator Status: closed Resolution: not a bug Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Dr Lee Hunt McDonald
Version: OCaml 3.02, 3.06
OS: Redhat Linux 8.0
Submission from: dsl093-162-077.tus1.dsl.speakeasy.net (66.93.162.77)
I realized that my previous bug report was just about an interesting feature of
mutable data structures : you need to do liberal doses of copying to avoid
changing the value of an existing data structure.
Thus I should have done
myMutStr <- String.copy "11";
instead of
myMutStr <- "11";
This is all very obvious if you remember to think in terms of pointers.
Sorry to bother you
Lee
The text was updated successfully, but these errors were encountered:
Original bug ID: 1463
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Dr Lee Hunt McDonald
Version: OCaml 3.02, 3.06
OS: Redhat Linux 8.0
Submission from: dsl093-162-077.tus1.dsl.speakeasy.net (66.93.162.77)
I realized that my previous bug report was just about an interesting feature of
mutable data structures : you need to do liberal doses of copying to avoid
changing the value of an existing data structure.
Thus I should have done
myMutStr <- String.copy "11";
instead of
myMutStr <- "11";
This is all very obvious if you remember to think in terms of pointers.
Sorry to bother you
Lee
The text was updated successfully, but these errors were encountered: