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

Bigarray “get” evaluates its argument twice #5175

Closed
vicuna opened this issue Nov 6, 2010 · 1 comment
Closed

Bigarray “get” evaluates its argument twice #5175

vicuna opened this issue Nov 6, 2010 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Nov 6, 2010

Original bug ID: 5175
Reporter: @Chris00
Status: closed (set by @xavierleroy on 2010-11-11T17:09:28Z)
Resolution: fixed
Priority: normal
Severity: major
Version: 3.13.0+dev
Fixed in version: 3.12.1+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @ygrek @hcarty @Chris00

Bug description

The attached code shows that in an expression like “(f y).{1}”, “f y” is evaluated twice which can have grave consequences e.g. if ”f” mutates “y”.

File attachments

@vicuna
Copy link
Author

vicuna commented Nov 11, 2010

Comment author: @xavierleroy

Well spotted, thanks. This is now fixed in the 3.12 bugfix branch. Will go into release 3.12.1.

@vicuna vicuna closed this as completed Nov 11, 2010
@vicuna vicuna added the bug label Mar 20, 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