Skip to content
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

Handle storage initializers #1185

Closed
Tracked by #1006
mohammadfawaz opened this issue Apr 7, 2022 · 4 comments · Fixed by #2078
Closed
Tracked by #1006

Handle storage initializers #1185

mohammadfawaz opened this issue Apr 7, 2022 · 4 comments · Fixed by #2078
Labels
compiler General compiler. Should eventually become more specific as the issue is triaged enhancement New feature or request language feature Core language features visible to end users P: critical Should be looked at before anything else

Comments

@mohammadfawaz
Copy link
Contributor

mohammadfawaz commented Apr 7, 2022

Blocker for supporting initialization with literals (primitive types):

Additional blocker for supporting arbitrary initializers:

@mohammadfawaz mohammadfawaz added enhancement New feature or request compiler General compiler. Should eventually become more specific as the issue is triaged language feature Core language features visible to end users P: critical Should be looked at before anything else labels Apr 7, 2022
@mohammadfawaz
Copy link
Contributor Author

mohammadfawaz commented May 31, 2022

Posted in FuelLabs/fuel-specs#302 instead.

@adlerjohn
Copy link
Contributor

Note that constant evaluation isn't needed for allow initial storage for primitive types.

@mohammadfawaz
Copy link
Contributor Author

mohammadfawaz commented Jun 1, 2022

Note that constant evaluation isn't needed for allow initial storage for primitive types.

Yup, clarified the description.

@mohammadfawaz
Copy link
Contributor Author

The spec for that is now ready: https://github.com/FuelLabs/fuel-specs/blob/master/specs/protocol/storage_initialization.md. This can now be implemented in the compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler General compiler. Should eventually become more specific as the issue is triaged enhancement New feature or request language feature Core language features visible to end users P: critical Should be looked at before anything else
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants