Skip to content

No way to create a record of user-provided type on a user-provided heap? #156

@inducer

Description

@inducer

In a way, this is a question masquerading as an issue; if that's considered inappropriate, feel free to close without comment. (Though I could not find another way to get in touch.)

I am trying to create a record of a type that lives in a FrozenModule, from rust code, and I would like the resulting object to live on a Heap I provide. I was not able to figure out how to do that:

  • RecordType lives in starlark::values::types, which is private.
  • I can get the record type as a Value, but if I'd like to call it, I need an evaluator. If I make a fresh one, then the resulting record lives in the wrong Heap.

Thanks for taking a look!

x-ref: inducer/starlark-pyo3#46

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions