rev 218 - trunk/pr
SVN User <[email protected]>
| Newsgroups | gmane.comp.lang.prothon.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: bcollins Date: 2004-03-30 15:43:31 -0500 (Tue, 30 Mar 2004) New Revision: 218 Modified: trunk/pr/init.pr Log: Update exec/eol-style Modified: trunk/pr/init.pr =================================================================== --- trunk/pr/init.pr 2004-03-30 20:39:52 UTC (rev 217) +++ trunk/pr/init.pr 2004-03-30 20:43:31 UTC (rev 218) @@ -1,22 +1,23 @@ - -print "Instantiating Base" -Base = Object() -with Base: - def .__init__(): - print "__init__ of Base type:", . - return . - -print "Instantiating Derived" -Derived = Base() -with Derived: - def .__init__(): - ^__init__() - print "__init__ of Derived type:", . - return . - -print "Instantiating y" -y = Derived() - -print "Base:", Base -print "Derived:", Derived -print "y:", y +#!/usr/local/bin/prothon + +print "Instantiating Base" +Base = Object() +with Base: + def .__init__(): + print "__init__ of Base type:", . + return . + +print "Instantiating Derived" +Derived = Base() +with Derived: + def .__init__(): + ^__init__() + print "__init__ of Derived type:", . + return . + +print "Instantiating y" +y = Derived() + +print "Base:", Base +print "Derived:", Derived +print "y:", y Property changes on: trunk/pr/init.pr ___________________________________________________________________ Name: svn:executable + * Name: svn:eol-style + native