[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Hurd] error_t, E*, and c++
From: |
Samuel Thibault |
Subject: |
Re: [Hurd] error_t, E*, and c++ |
Date: |
Tue, 27 May 2008 10:39:45 +0100 |
User-agent: |
Mutt/1.5.12-2006-07-14 |
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