From: Richard J. <ri...@an...> - 2005-02-09 10:22:55
|
See below. It should be possible to use these to print out the contents of 'float array' types. Currently the code throws a Failure if it finds one of these. Rich. ----- Forwarded message from Damien Doligez <cam...@pa...> ----- Subject: Re: Obj module should provide binding for Double_field and Store_double_field macros (PR#3456) From: Damien Doligez <cam...@pa...> To: ri...@an... > 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 ----- End forwarded message ----- -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com |