Skip to content

Automatic creation from current local context #5

Open
@cscherrer

Description

@cscherrer

Soss models have reference global scope, but we're having trouble getting them to resolve local scope. Here's an issue with some more details.

It seems like it could help to wrap a model in a static module, or maybe even have one internal to the Model struct. But this line of thinking makes me wonder if it might be possible to construct one automatically.

For example, is it possible to build a make_staticmodule function that can be used like this:

function f(x)
    make_staticmodule()
end

so that

f(3.0).x == 3.0

?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions