Re: data() problems
[email protected] (Uri Guttman)
| Newsgroups | perl.loop |
|---|---|
| Message-ID | <[email protected].> |
>>>>> "JNP" == Joshua N Pritikin <[email protected]> writes: JNP> On Thu, Apr 20, 2000 at 02:22:25PM +0100, [email protected] wrote: >> In otherwords there should be two methods. One for the user, say >> data(), and one for sub-classes that want to ensure data integrity, >> say private_data() couldn't the method names be the same and the constructor use a special key to save the data? then the primary watcher would have access to that with the data method and any subclassed ones would work fine too. JNP> Shall I add a note in Event.pod mentioning that data() is meant JNP> only for implementors of event watchers? i beg to differ. i had no intentions of subclassing watchers and i wanted the data method. it should be handled at the constructor level as well, either via graham's multiple methods or my scheme (if it works). uri -- Uri Guttman --------- [email protected] ---------- http://www.sysarch.com SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting The Perl Books Page ----------- http://www.sysarch.com/cgi-bin/perl_books The Best Search Engine on the Net ---------- http://www.northernlight.com