Skip to content

std.math.hardware FloatingPointControl should not mention uninitialized variables #11050

Description

@rikkimax

For std.math.hardware FloatingPointControl, it mentioned uninitialized values of floats.

I.e.

// Enable hardware exceptions for division by zero, overflow to infinity,
    // invalid operations, and uninitialized floating-point variables.

https://dlang.org/phobos/std_math_hardware.html#.FloatingPointControl

An uninitialized float can hold a valid value for the type. It may instead by trying to say "default-initialized" instead. However default initialized floats in D are no longer signally NaN's, they are quiet NaN's, so that would not be true either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions