Skip to content

Allow keyed result from function reflection #8632

@miberss

Description

@miberss

Suggestion

Function reflection such as result of (function "x" in script "y") does not allow for keyed values to be returned.

# test.sk
using reflection

local function f() -> Objects:
    set {_M::foo} to 1
    set {_M::bar} to "hello"
    set {_M::bar::foo} to "world" 
    return keyed {_M::*}

load:
    broadcast (keyed (results of (function "f" in script "test")))

"the results of the function named "f" from the script named "test" is not a keyed expression."

Why?

To just make normal functions more compatible with reflected functions, or to be more specific for my use-case, module like use of files, as a management strategy.

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this suggestion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature request, an issue about something that could be improved, or a PR improving something.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions