2017년 6월 30일 금요일

creating new objects or adding new properties


I am not sure this falls into the "technical help" category, it is more of a discussion on features. If this is not the right category or if features are not debatable please let me know.

I would like to ask if there is a reason why AppInventor does not allow for:
- the creation of new objects through a "new" or "clone" block, e.g. new [ ImageSprite ]
- the addition of new properties to existing objects e.g. addProperty [ score ] [ ImageSprite1 ]. I am referring to arbitrary properties that are local to an object, as opposed to global variables, or variables that are local to a code block.
- the addition of new methods to existing objects. I am referring to arbitrary procedures that are "added" as methods to an object, as opposed to globally available procedures.

These are quite elementary object-oriented elements and their absence sometimes poses severe restrictions on what can be created with AppInventor. Let me point out that Scratch does offer these capabilities (with object cloning being a recent addition to Scratch 2.0).

--
yes, that's a number of features that would be helpful in the system.
App Inventor is open source, so if you want to contribute any of the
features above please do get in touch:
http://appinventor.mit.edu/appinventor-sources/

--

댓글 없음:

댓글 쓰기