rev 554 - in trunk: . docs/tutorial
SVN User <[email protected]> Wed, 26 May 2004 17:13:55 -0400
| Newsgroups | gmane.comp.lang.prothon.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: mark
Date: 2004-05-26 17:13:52 -0400 (Wed, 26 May 2004)
New Revision: 554
Modified:
trunk/STATUS.txt
trunk/docs/tutorial/tutorial7.htm
Log:
status update
Modified: trunk/STATUS.txt
===================================================================
--- trunk/STATUS.txt 2004-05-25 23:03:57 UTC (rev 553)
+++ trunk/STATUS.txt 2004-05-26 21:13:52 UTC (rev 554)
@@ -1,6 +1,11 @@
----------------------- TO-DO (highest priority first) ------------------------
+--- Add properties methods: get_, set_, delete_
+
+--- switch integers to longs?
+--- check for OverflowError in math routines
+
--- Traceback objects (stack trace of an exception), exceptions should show function names
--- Fix error reporting mess, hide fake file names
@@ -10,8 +15,6 @@
--- allow strings to compare with symbols
---- Add properties methods: get_, set_, delete_
-
--- add conditional expression " if C then x else y"
--- Auto-documenter app
@@ -38,7 +41,7 @@
--- test += on modifiable type, i.e. __iadd__ type calls
---- check for OverflowError in math routines
+--- C API for profiling
--- credit Ruby
@@ -57,7 +60,6 @@
----------------------- TUTORIAL TO-DO ------------------------
- sel(a,b,c) doesn't exactly work like a?b:c
iter_ (for loop)
attrs_
protos_
@@ -74,7 +76,6 @@
console line editing
str_, call_
-
---------------- Ideas to consider for inclusion ------------------------------
Psyco in std interpreter?
@@ -158,17 +159,6 @@
for x in 5:
support /* */ comments
-
------------------------------- new binding -------------------------------
-
-$var # var is attribute of self
-^var # var is an attribute of a proto of self
-obj.func() # func is an attribute of obj and bound to obj
-obj$func() # func is an attribute of obj and bound to current self
-x = obj.func # x is bound method of func attribute of obj and obj
-x = obj$func # x is bound method of func attribute of obj and self
-x = obj.attr(func) # x is unbound func
-
-------------- built-in functions ----------------
Modified: trunk/docs/tutorial/tutorial7.htm
===================================================================
--- trunk/docs/tutorial/tutorial7.htm 2004-05-25 23:03:57 UTC (rev 553)
+++ trunk/docs/tutorial/tutorial7.htm 2004-05-26 21:13:52 UTC (rev 554)
@@ -231,7 +231,8 @@
This allows "gating" of values. The result of "True and
99" is 99. The result of "False or 'abc'" is 'abc'. This
allows you to do this trick, which should look familiar to you C programmers
- as the "x ? y : z" construct:</p>
+ as the "x ? y : z" construct (except that a and b are both
+ evaluated first):</p>
<pre># Prothon source file tut10.pr
def sel(q, a, b):
@@ -240,8 +241,15 @@
print sel(True, 1, 2)
print sel(False, 1, 2)</pre>
<p>Which prints out this result:</p>
- <pre>XXX</pre>
- <p> </p>
+ <pre>1
+2</pre>
+ <p>(Note: Unfortunately a bug that was not fixed until build 554 prevents
+ this example from working in build 532. You may download the latest
+ build to run this example but many other examples may not work as the
+ language is changing and this tutorial may not be up-to-date. See the
+ download section on the Prothon home page for unstable build download
+ information).</p>
+ <p> </p>
</td>
</tr>
</table>