* [Caml-list] Data_custom_val(v)
@ 2001-07-15 3:16 Alexander V. Voinov
2001-07-20 14:00 ` Xavier Leroy
0 siblings, 1 reply; 2+ messages in thread
From: Alexander V. Voinov @ 2001-07-15 3:16 UTC (permalink / raw)
To: caml
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-07-20 14:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-15 3:16 [Caml-list] Data_custom_val(v) Alexander V. Voinov
2001-07-20 14:00 ` Xavier Leroy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox