search for: namedesc

Displaying 2 results from an estimated 2 matches for "namedesc".

Did you mean: name_desc
2020 Sep 01
1
Re: [nbdkit PATCH 2/2] ocaml: Implement .list_exports and friends
...he alternation was on a string vs. a 2-tuple of strings, rather than all list members being a record but where the record had an optional member. But I'm not sure how to represent that in the ocaml interface. Maybe I'm thinking of something like: type export = | Name of string | NameDesc of string * string but I'm not quite sure how to write a list that initializes that. On the other hand, I think I understand the C binding for such a type: either val is Val_int(0) (C 1) for the Name branch (Field(v, 0) is a string), or val is Val_int(1) (C 2) for the NameDesc branch (Fiel...
2020 Sep 01
3
Re: [nbdkit PATCH 2/2] ocaml: Implement .list_exports and friends
On 9/1/20 8:25 AM, Eric Blake wrote: > Fairly straightforward. I'd love for type export to be a bit more > flexible to make description optional, but could not figure out how to > decode that from the C side of things, so for now this just requires > the caller to supply a description for all exports during > .list_exports. > Maybe I did figure it out after all, although