Skip to content

Regions GC: Can't use withRegion/withScratchRegion when using --os:standalone #12616

Open
@clj

Description

@clj

withRegion and withScratchRegion use try ... finally which does not work when using --os:standalone

Example

# --gc:regions --os:standalone
withScratchRegion:
  discard

Current Output

Error: system module needs: getFrame

Possible Solution

Use when defined(standalone): to define versions of withRegion and withScratchRegion that do not use try ... finally.

Additional Information

$ nim -v
Nim Compiler Version 1.0.2 [Linux: amd64]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions