rev 423 - trunk/pr
SVN User <[email protected]> Wed, 28 Apr 2004 01:16:13 -0400
| Newsgroups | gmane.comp.lang.prothon.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: mark Date: 2004-04-28 01:16:10 -0400 (Wed, 28 Apr 2004) New Revision: 423 Modified: trunk/pr/test.pr Log: Added Proto(), added Global methods __call__, __new__, and __init__ Modified: trunk/pr/test.pr =================================================================== --- trunk/pr/test.pr 2004-04-27 17:56:36 UTC (rev 422) +++ trunk/pr/test.pr 2004-04-28 05:16:10 UTC (rev 423) @@ -1,6 +1,12 @@ #!/usr/bin/env prothon -print 'should print h e l l o' -for i in "hello": - print i, -print +x = Object() +with x: + $a = 0 + def $__init__(a): + $a = a + def $__str__(): + return '*'+$a+'*' + +y = x(1) +print y