Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Data_custom_val(v)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alexander V. Voinov <avv@q...>
Subject: [Caml-list] Data_custom_val(v)
Hi Developers,

I forgot to mention that Data_custom_val(v) doesn't allow for
assignments in C++, instead I have to use

    value blk = alloc_custom(...);
    *(void **)&(Field(blk, 1)) = (void *)some_data;

Alexander
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr