rev 460 - in trunk: . pr src

SVN User <[email protected]> Wed, 05 May 2004 21:04:47 -0400
Newsgroups gmane.comp.lang.prothon.cvs
Message-ID <[email protected]>
Author: mark
Date: 2004-05-05 21:04:44 -0400 (Wed, 05 May 2004)
New Revision: 460

Modified:
   trunk/STATUS.txt
   trunk/pr/test.pr
   trunk/src/builtins-dict.c
Log:
fixed bug 17, dict lost items when expanding it's size

Modified: trunk/STATUS.txt
===================================================================
--- trunk/STATUS.txt	2004-05-05 03:23:26 UTC (rev 459)
+++ trunk/STATUS.txt	2004-05-06 01:04:44 UTC (rev 460)
@@ -1,9 +1,11 @@
 
 ----------------------- TO-DO (highest priority first) ------------------------
 
+--- change obj$func() to obj.func$()
+
 --- Fix function extension bug.
 
---- Add properties methods support (__get__,  __set__, __delete__)
+--- Add properties methods support (__get__,  __set__, __delete__)  rename protoList
 
 --- Add Globals built-in attribute (actually a synonym for current Main module which can be named Main1, Main2, ...)
 
@@ -48,6 +50,10 @@
 
 ---------------- Ideas to consider for inclusion ------------------------------
 
+Self copying as default behaviour?
+
+Psyco in std interpreter?
+
 multiple modules per file?
 
 add function version of print (write)

Modified: trunk/pr/test.pr
===================================================================
--- trunk/pr/test.pr	2004-05-05 03:23:26 UTC (rev 459)
+++ trunk/pr/test.pr	2004-05-06 01:04:44 UTC (rev 460)
@@ -8,10 +8,6 @@
 
 for n in max:
     d[Key(n)] = True
-    for i in n:
-        if Key(i) not in d:
-            lost = True
-            print "%d missing of %d" % (i,n)
 
 print "\nChecking dictionary ..."
 lost = False

Modified: trunk/src/builtins-dict.c
===================================================================
--- trunk/src/builtins-dict.c	2004-05-05 03:23:26 UTC (rev 459)
+++ trunk/src/builtins-dict.c	2004-05-06 01:04:44 UTC (rev 460)
@@ -93,8 +93,8 @@
 		if ((hash_in = dicthash(old_dict, i)) > 0) {
 			for (j=hash_in; (dp=dictptr(dict,j))->entry.hash; j++);
 			dp->entry.hash  = hash_in;
-			dp->entry.key   = dictkey(old_dict, j);
-			dp->entry.value = dictitem(old_dict, j);
+			dp->entry.key   = dictkey(old_dict, i);
+			dp->entry.value = dictitem(old_dict, i);
 		}
 	}
 	pr_free(old_dict);