On Fri Jun 23 23:08:53 2023 +0000, Zebediah Figura wrote:
Besides the global variable and fixed-size array, both of which seem undesirable and avoidable, I'm bothered by the inconsistency between arrays and pointers. Why do we recurse into the pointer type for arrays, but not for pointers? I don't have midl handy, so I can't easily check, but it seems suspicious that the logic is different there in the first place.
Sure, I'm open to better suggestions, I just couldn't think of anything better for now. Is passing it through and dynamically allocating it better?
As for the difference between arrays and pointers, I'm not too familiar with the details of widl, I just worked with what's there already. I thought the difference between arrays and pointers is, that arrays have a known length (or are local). After all, you can't really marshal a pointer if you don't know how many elements.