rev 250 - trunk/pr
SVN User <[email protected]>
| Newsgroups | gmane.comp.lang.prothon.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: bcollins Date: 2004-04-01 18:06:03 -0500 (Thu, 01 Apr 2004) New Revision: 250 Modified: trunk/pr/closure.pr trunk/pr/meow.pr Log: Fix exec/eol-style. Modified: trunk/pr/closure.pr =================================================================== --- trunk/pr/closure.pr 2004-04-01 18:45:21 UTC (rev 249) +++ trunk/pr/closure.pr 2004-04-01 23:06:03 UTC (rev 250) @@ -1,13 +1,13 @@ -#!/usr/local/bin/prothon - - -def f1(): - count = 0 - def f2(): - &count += 1 - return &count - return f2 - -f =f1() -print f(), f(), f() # prints 1 2 3 - +#!/usr/local/bin/prothon + + +def f1(): + count = 0 + def f2(): + &count += 1 + return &count + return f2 + +f =f1() +print f(), f(), f() # prints 1 2 3 + Property changes on: trunk/pr/closure.pr ___________________________________________________________________ Name: svn:executable + * Name: svn:eol-style + native Modified: trunk/pr/meow.pr =================================================================== --- trunk/pr/meow.pr 2004-04-01 18:45:21 UTC (rev 249) +++ trunk/pr/meow.pr 2004-04-01 23:06:03 UTC (rev 250) @@ -1,21 +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." - ^describe() # <-- super call - def .make_noise(): - print "I go meow." - -c = Cat() -c.describe() - +#!/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." + ^describe() # <-- super call + def .make_noise(): + print "I go meow." + +c = Cat() +c.describe() + Property changes on: trunk/pr/meow.pr ___________________________________________________________________ Name: svn:executable + * Name: svn:eol-style + native