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

Add a dictionary data structure #50

Closed
tansly opened this issue Apr 10, 2019 · 4 comments · Fixed by #51
Closed

Add a dictionary data structure #50

tansly opened this issue Apr 10, 2019 · 4 comments · Fixed by #51
Assignees
Labels
enhancement New feature or request

Comments

@tansly
Copy link
Contributor

tansly commented Apr 10, 2019

Inspired by the discussion at scratchfoundation/scratch-vm#1030 (comment).

I will start by tinkering around to see how this can be implemented.

@tansly tansly self-assigned this Apr 10, 2019
@tansly tansly added the enhancement New feature or request label Apr 10, 2019
@tansly
Copy link
Contributor Author

tansly commented Apr 10, 2019

First of all, it is clear that this will involve adding support for a new variable type in bb-vm and bb-blocks. It will also probably need some support in bb-parser for project serialization. Fortunately, I'm familiar with this kind of stuff due to my work on named clones (#42), which also involved creating a new variable type.

I'm starting with stuff related to the variable type.

@bozbalci
Copy link
Contributor

Good luck

@tansly
Copy link
Contributor Author

tansly commented Apr 10, 2019

ty

tansly added a commit that referenced this issue Apr 11, 2019
@tansly
Copy link
Contributor Author

tansly commented Apr 11, 2019

Looks like there are several options we can go with to implement the underlying structure for dictionaries: https://stackoverflow.com/questions/7196212/how-to-create-dictionary-and-add-key-value-pairs-dynamically

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

Successfully merging a pull request may close this issue.

2 participants