tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: strsuftoi(3), strsuftou(3) proposal in libc
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 02.11.2015 02:49, Mouse wrote:
>> It's already done - libnbcompat in pkgsrc. Just write your
>> program with NetBSD libc API and use libnbcompat for whatever
>> POSIX-like platform. This is how I'm doing it - no big magic.
>
> Speaking as a code author, the headaches of that approach occur
> when some well-meaning soul adds yet another function to libc - and
> it happens to collide with a function in your program, a function
> that used to be in user namespace. I've got a program in which I
> had to rename heapsort to heap_sort, I think it was, because of
> that.
>
This is valid argument... but it may happen in every programming
language and library. A friend of mine had to rename 'enum' in his
Java code, because it was added to the language as a reserved keyword.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJWNsfSAAoJEEuzCOmwLnZs5VAQAIOT8qIm5mMR4hU1aDDAK9Fk
3vToDlS8WLdYawc7PRMoMm2V33MsqiyC/JnVw6gSuM9Aj3AkOpcL8ddhUNkrZNn7
bK9doYTMIz0+6VwQM52UsbL1poL6ehhzo+fUJjfYCDQpkO8r0oYeup/vpZsraHu6
XCO3XDGgb4x2w46lnRrduELm+usFYZ5PO3rRqq+i39h37emIEUCg9G3IoF4J7Q1Z
zjpnZ+30rBsH0AFQNAQmAR52AnUt0p2cu6TE0zbYrfQ9MWQ06JZBw7yvjhziQl0b
k1Aoxd3BI00CH3pMlZHiotRBhMInEry9JlpKUlarW8Ar+9tBsXvySM+68Bka0hY1
aDBgt6nGxtCuGD93kUVMyiBLWasU61QVbu0z+vj639xf08IL7VlzM+qPDgsUpCAl
gxPvWOs5YXTQ1vzaGm3hFU7QhNGlcu2Q+FiBl6c3qmOesKCBJAvYFF7f85NPUFLA
KItlZISa0paep50j5Fht/jPA/wDhWjBF01gO6XEmexUOjokQ/weg5PFIOmspDmGn
0UlTF9yFGvvMfjuTXaHITXRkdFSssdOe7u+xIFQqQJMSF5aVSxObssXCDXkBZFzl
rXK4KC77RqsMPW4bTl1VpLRDNvgfxv+oUz90yHZq7K6+Rz/sai0CFHP0H7bGe2WN
bZI2NzXEjk3kpNtmwRkp
=ebwE
-----END PGP SIGNATURE-----
Home |
Main Index |
Thread Index |
Old Index