niteshmourya / app-inventor-for-android

Automatically exported from code.google.com/p/app-inventor-for-android
Apache License 2.0
1 stars 0 forks source link

Request implementation of Class Creation block #1223

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please implement Class creation.

Problems this would solve:
 1) Creating a "class" currently requires the use of a list populated with the class member field data.
 2) Accessing this data requires a bunch of global variables to index those fields
 3) Changing this data requires a ton of global getter/setter methods that take the list as a parameter.
 4) Having a ton of global getter/setter methods gets messy as the parameters must all have globally unique names for what is essentially the same parameter.
 5) In general, the paradigm shifts from Object-Oriented programming, to Object-Permutation, which is tricky to deal with, less common then OO programming, and doesn't foster the transition to Android, Java, C++, etc, as easily.

It would be much cleaner to have a "class" object that was say an enclosed 
square that functioned kinda like an alternate screen. Within here you could 
define variables and methods. Every method you define then shows up in your 
"definitions" list as class.method, similar to how the predefined blocks work.

Original issue reported on code.google.com by phe...@gmail.com on 7 Feb 2011 at 9:36

GoogleCodeExporter commented 9 years ago

Original comment by weihuali...@gmail.com on 17 Mar 2012 at 1:28