Skip to content

Automatic creation from current local context #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cscherrer opened this issue Mar 25, 2021 · 0 comments
Open

Automatic creation from current local context #5

cscherrer opened this issue Mar 25, 2021 · 0 comments

Comments

@cscherrer
Copy link

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

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant