rev 240 - in trunk: . pr
SVN User <[email protected]>
| Newsgroups | gmane.comp.lang.prothon.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: mark Date: 2004-03-31 18:09:05 -0500 (Wed, 31 Mar 2004) New Revision: 240 Added: trunk/pr/meow.pr Modified: trunk/STATUS.txt Log: new status, new meow.pr Modified: trunk/STATUS.txt =================================================================== --- trunk/STATUS.txt 2004-03-31 22:36:04 UTC (rev 239) +++ trunk/STATUS.txt 2004-03-31 23:09:05 UTC (rev 240) @@ -41,6 +41,8 @@ ----------------------- TO-DO (highest priority first) ------------------------ +--- clean up super -- search entire mro -- use proper self for funcs + --- catch exceptions during module loading --- smarter continuation - remove \ Added: trunk/pr/meow.pr =================================================================== --- trunk/pr/meow.pr 2004-03-31 22:36:04 UTC (rev 239) +++ trunk/pr/meow.pr 2004-03-31 23:09:05 UTC (rev 240) @@ -0,0 +1,21 @@ +#!/usr/local/bin/prothon + +Mammal = Object() +with Mammal: + def .describe(): + print "I am a mammal." + .make_noise() + def .make_noise(): + print "I make some kind of noise." + +Cat = Mammal() +with Cat: + def .describe(): + print "I am a cat." + Mammal.describe() # <-- Intended super call + def .make_noise(): + print "I go meow." + +c = Cat() +c.describe() +