On Mar 10, 2006, at 4:56 AM, Theodore H. Smith wrote:
So Lets say I have class "MySuper", and class "MySub". Both have
the "GetItem" event. If I call "GetItem", the event called really
depends on which class the code is in that is calling GetItem. So
it's as if we actually had the method:
function MySuper_GetItem() as item... and
function MySub_GetItem() as item
This would allow for distinguishing between which "event" is
called. All you'd need then is a bit of syntactic magic in the
parser to imply the "MySuper_" or the "MySub_" part when coming
across a call to "GetItem"!
And you'd have an event system that is built out of methods.
Except that maintaining it is a nightmare, and setting it up in the
first place is significantly extra work than letting RB do it for us.
This is true in the same sense that you don't need a high-level
programming language. You can do object-oriented assembly language
programming if you want, too, so who needs REALbasic?
Guyren G Howe
guyren-at-relevantlogic.com
http://relevantlogic.com
REALbasic, PHP, Python programming
PostgreSQL, MySQL database design and consulting
Technical writing and training
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>