[phobos] phobos commit, revision 1924

Walter Bright walter at digitalmars.com
Mon Aug 23 01:36:18 PDT 2010


ssize_t appears to be incorrectly defined in types.d, which unistd.d 
imports. It is supposed to be a "signed" size_t, whereas there are 
aliases in it that make it size_t. For example, OSX's /usr/include files 
definite set it to be a long, not a size_t as set in types.d. It looks 
like all the aliases need to be double checked.

Andrei Alexandrescu wrote:
> I tried the uninspired name ssize_t; the problem is it conflicted with 
> unistd.d and I couldn't disambiguate due to what seems to be a 
> compiler bug.
>
> I meant to use sizediff_t as a temporary until we settle on a final 
> solution. When we do, I'll replace that symbol with whatever we settle 
> for.
>
>
> Andrei
>
> On 08/22/2010 05:14 PM, Walter Bright wrote:
>> But now we have:
>>
>> ptrdiff_t
>> sizediff_t
>> ssize_t
>>
>> all aliased to the same type. What's the rationale for when one uses 
>> which?
>>
>> dsource.org wrote:
>>> phobos commit, revision 1924
>>>
>>>
>>> user: andrei
>>>
>>> msg:
>>> replaced ssize_t with sizediff_t
>>>
>>> http://www.dsource.org/projects/phobos/changeset/1924
>>>
>>> _______________________________________________
>>> phobos mailing list
>>> phobos at puremagic.com
>>> http://lists.puremagic.com/mailman/listinfo/phobos
>>>
>>>
>> _______________________________________________
>> phobos mailing list
>> phobos at puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/phobos
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
>
>


More information about the phobos mailing list