Skip to content

Trunc not working #133

@Kinosaur

Description

@Kinosaur

Scope

  • This squid is an SOSML squid. (It occurs independently of the frontend used. Example: Wrong code elaborating.)
  • This squid is an SOSML-frontend squid. (It occurs on sosml.org, but not when using SOSML directly. Example: Getting unexpected evaluation time-outs.)
  • I don't know. (Don't worry, we'll figure things out.)
  • Other. (Please specify.)

Describe the bug
The trunc function, which is a standard function in the SML Basis Library, is not recognized by the SOSML interpreter. Attempting to use trunc(real) results in an "Unbound value identifier 'trunc'" error, indicating that the function is not in scope or not available.

To Reproduce

(* Expected output: val it = 5 : int *)
trunc(5.4);

Metadata

Metadata

Assignees

No one assigned

    Labels

    p5: medium prioritymajor bugs that are hard to trigger or minor bugs that are easy to triggert:enhancement

    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