In
<CAFO-8tqqtEaVUp7wc=_acmh3ev-fj3tjezkovbg+obcndey...@mail.gmail.com>,
on 06/28/2013
at 03:52 PM, zMan <[email protected]> said:
>Would you:
>a) Design the API to pass data/length pairs
>b) Use null-terminated strings to keep the C people happy, and have
>to create some sort of layer for languages like COBOL to keep usage
>from that world sane?
c) Design a C++ API that maps well into other languages.
>Surely they understand the *concept* of a length.
We're running out of Hydrogen.
>But people are whining: "But this is how C works -- that's what
>strings are!"
Send them back to class.
>How do most other APIs deal with this?
Mostly they're broken.
This is really a political question; will you be allowed to do it
right.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT
Atid/2 <http://patriot.net/~shmuel>
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN