Post Reply 
Programmatic access to app functionality
11-04-2015, 05:14 PM
Post: #6
RE: Programmatic access to app functionality
Hi Cyrille,

Thanks for the information. The class model was one of the HP Prime features that I thought was pretty innovative. Being able to add exported functions to the program associated with a user app, and being able to override default app key behavior did seem a lot like creating a subclass.

Playing around with the subclass idea, I've found that saving a user app also copies its user program file to the new app program file. Replacing the code in the new app function bodies with a super reference

oldappname.functionname(arglist)

works as well. Seems like a germ of an idea to support method references in a class hierarchy.

Based on roadrunner's solution to the multi-app question I had, it sounds like the Prime can be said to have something like an Active Object model with a single thread of control. I'll have to explore this a bit more, but if each app object maintains its own computational context, cooperating active objects could be a pretty powerful "mental image" for creating app solutions.

Very interesting functionality indeed!
~Mark
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programmatic access to app functionality - mfleming - 11-04-2015 05:14 PM



User(s) browsing this thread: 1 Guest(s)