Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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;

Bug reports:  FAQ:
To unsubscribe, mail  Archives: