[Hurd] error_t, E*, and c++
Samuel Thibault
samuel.thibault@ens-lyon.org
Tue May 27 11:48:00 GMT 2008
Roland McGrath, le Mon 26 May 2008 20:01:17 -0700, a écrit :
> (The error_t usage being broken in C++ is at least not a silent change
> or breakage of something that already works.)
True for us, but it does work on e.g. Linux since error_t is typedefed
to int there :/
> It may also be a problem in some other C++ way I'm not aware of off
> hand, for the type of EFOO not to be int.
>
> I'm open to suggestions. But I think we might just have to live with
> C++ using (error_t) EFOO, or else supply a C++ <errno> or whatever where
> there is explicitly no expectation of int-valued or cpp-usable values,
> if people would actually use that.
Ok, so that means we have to raise the issue at the C++ language level :/
Thanks,
Samuel
More information about the Libc-alpha
mailing list