Skip to content

Terminate with float_ function after #EndFloat #836

Description

@cbmarini

The following two programs now terminate:

#StartFloat 10d
Local F = 3.0;
Local G = 5.0;
Print +s;
.sort

#EndFloat
Local FG = F*G;
Print;
.end

and

#StartFloat 10d
Local F = 3.0;
.sort

#EndFloat
Multiply 5;
Print;
.end

As the float_ functions should become a regular function (but still protected from pattern matching etc.), the correct results should be the product of two float_ functions and 5*float_(...) respectively.

The terminate comes from UnpackFloat. There should probably be a check if the float system is turned on before making the call to UnpackFloat

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions