Michael Weber wrote:
> [...] otherwise there would be a `marshalList' and `marshalListN' with
> same type signature, which I also regarded as confusing.
That was a problem with your approach, not mine... :-)
> [...] But how else can you marshall an arbitrary length list? For
> Int lists, there is no zeroElem... [...]
A usual approach for this in many C-based APIs is that two arguments
are passed: a pointer and an integral of some kind, stating the number
of elements pointed to, see e.g. conformant arrays and the size_of
attribute in DCE-IDL (can't remember how MIDL calls this).
Cheers,
Sven
--
Sven Panne Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen Oettingenstr. 67
mailto:[EMAIL PROTECTED] D-80538 Muenchen
http://www.informatik.uni-muenchen.de/~Sven.Panne