At 6:45 PM -0400 5/23/04, Alfred Van Hoek wrote:
> You don't want to "protect" your plugin from the subclass method; you
want the subclass method to be called, just as it would be if you
made the same call in RB.
If this is the case and you would want this behavior you better start
publishing that under the hood xmldocument.saveXML is using
CreateAsTextFile. Since this is unknown territory for many rb users using
xml classes you might end up with bug reports in the bugbase because they
use a folderitem class that defines a CreateAsTextFile.
They may also become surprised that their subclass method is mysteriously
called, and if the subclass implementation is wrong, xmldocument.savexml
will fail.
I suppose if we get such bug reports, we'll just have to educate the
reporter on that this is how object-oriented programming works, and
that what they have found is a feature, not a bug.
Best,
- Joe
--
,------------------------------------------------------------------.
| Joseph J. Strout REAL Software, Inc. |
| joe at realsoftware dot com http://www.realsoftware.com |
`------------------------------------------------------------------'
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|