add phobos module std.halffloat ?

Walter Bright newshound2 at digitalmars.com
Wed Dec 19 00:55:03 PST 2012


On 12/19/2012 12:47 AM, Alex Rønne Petersen wrote:
> On 19-12-2012 08:35, Jacob Carlborg wrote:
>> On 2012-12-19 08:30, Walter Bright wrote:
>>> https://github.com/D-Programming-Language/phobos/pull/1018/files
>>
>> Cool, Walter does a pull request. Should this be put in the review queue
>> or is this a small enough change to be added anyway?
>>
>
> Seems a bit overkill to throw it in the review queue, but I don't know how
> rigorous we want to be about that.

Probably the main point of this module is to demonstrate how to do new 
arithmetic types like this without needing compiler support. It also shows how 
to do IEEE floating point rounding correctly, which is not obvious and not trivial.

This particular type is a standard type and crops up in graphics code, so there 
is a use for it.



More information about the Digitalmars-d mailing list