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

Sorry about that mistake #7872

Closed
vicuna opened this issue Oct 27, 2002 · 1 comment
Closed

Sorry about that mistake #7872

vicuna opened this issue Oct 27, 2002 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Oct 27, 2002

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

@vicuna
Copy link
Author

vicuna commented Oct 28, 2002

Comment author: administrator

See #7855

@vicuna vicuna closed this as completed Oct 28, 2002
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant