JaysGitLab / cs-5666-scatt-jacc-caj

cs-5666-scatt-jacc-caj created by GitHub Classroom
1 stars 1 forks source link

Counting number of data variables used #27

Closed fenwickjb closed 7 years ago

fenwickjb commented 7 years ago

Scratch allows for data "variables" that do what we programmers would expect: hold values for use by other scripts and/or sprites. Another issue counts the number of data-category blocks, but this issue is about knowing how many different variables are being defined. We could define a single data variable but then use it many times with many blocks. So the other issue would report many usages, but this issue would say only 1 data variable was defined/used.

Note that data variables can be created to be limited in their scope to a single sprite or available for all sprites. This is probably significant and we might want to know this in a disaggregated way.