Re: Yet another look at the apr_off_t problem
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2004-01-24 16:32:36 CET
Ben Reser wrote:
I understand the explanation that has been given for why the current "apr_off_t" is unsuitable for use in a library API, but I am not completely familiar with library API/ABI design issues. The use of "apr_uint64_t" to hold a line number seems to me very ugly. A line number is not logically a 64-bit type, it is an unbounded type. Interfaces within an application are normally best written with plain "int". If "int" is not big enough for someone's line numbers, then they almost certainly need a bigger computer (one which is natively 64-bit or 128-bit).
Is there an ABI-related reason not to use plain "int" in library APIs? If so, what about our several other APIs that already use plain "int"?
- Julian
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.