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

Obj module should provide binding for Double_field and Store_double_field macros #3456

Closed
vicuna opened this issue Feb 3, 2005 · 3 comments

Comments

@vicuna
Copy link

vicuna commented Feb 3, 2005

Original bug ID: 3456
Reporter: administrator
Assigned to: @xclerc
Status: closed (set by @xavierleroy on 2011-05-29T10:20:24Z)
Resolution: fixed
Priority: normal
Severity: feature
Fixed in version: 3.11.2+dev
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Richard Jones
Version: 3.08.1
OS: Linux
Submission from: annexia.force9.co.uk (212.56.101.183)

The Obj module provides no method for accessing the
fields in a Double_array_tag. It should wrap the
macros Double_field and Store_double_field.

@vicuna
Copy link
Author

vicuna commented Feb 8, 2005

Comment author: administrator

Full_Name: Richard Jones
Version: 3.08.1

The Obj module provides no method for accessing the
fields in a Double_array_tag. It should wrap the
macros Double_field and Store_double_field.

You can define them yourself:

let double_field x i = Array.get (Obj.obj x : float array) i;;
let store_double_field x i v = Array.set (Obj.obj x : float array) i v;;

-- Damien

@vicuna
Copy link
Author

vicuna commented Feb 8, 2005

Comment author: administrator

should we define these convenience functions? DD

@vicuna
Copy link
Author

vicuna commented Sep 16, 2009

Comment author: @xclerc

The proposed functions have been added, renaming 'store_double_field'
into 'set_double_field' for the sake of consistency.

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