Ryszard Glab
d947f68c8e
2005-11-07 14:35 UTC+0100 Ryszard Glab <rglab@imid.med.pl>
...
* include/hbapi.h
* include/hbapiitm.h
* include/hbcomp.h
* include/hberrors.h
* include/hbexpra.c
* include/hbpcode.h
* include/hbsetup.h
* source/common/expropt1.c
* source/compiler/expropta.c
* source/compiler/genc.c
* source/compiler/gencli.c
* source/compiler/harbour.c
* source/compiler/harbour.l
* source/compiler/harbour.y
* source/compiler/hbfix.c
* source/compiler/hbgenerr.c
* source/compiler/hbpcode.c
* source/macro/macroa.c
* source/vm/hvm.c
* source/vm/itemapi.c
+ tests/foreach.prg
+ added support for FOR EACH loop
FOR EACH var1 [,var255] IN expr1 [,expr255] [DESCEND]
NEXT
Note:
-expr can be a string or an array
if it is a string then assigments to the control
variable does not change the string
-after the loop the controlling variable(s) store the
value which they had before entering the loop
-the controlling variable supports the following properties
:__enumindex - the loop counter for variable
:__enumbase - the value that is being traversed
:__enumvalue - the value of variable
-see tests/foreach.prg for examples
+ added warnings in cases of duplicated loop variables
eg. FOR i:=1 TO 5
FOR i:=i TO i+5
-removed strong typing in the compiler (xHarbour too)
(reactivate it by compiling with -DHB_COMP_STRONG_TYPES)
NOTE:
The new pcodes were added - rebuild everything
2005-11-07 13:28:40 +00:00
..
2004-10-11 20:44:30 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
2002-06-02 09:56:29 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-25 11:25:54 +00:00
2004-04-16 15:05:25 +00:00
1999-10-04 18:46:41 +00:00
2000-11-28 22:07:05 +00:00
2001-08-22 17:41:10 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
2000-02-14 08:11:56 +00:00
2001-09-10 22:04:29 +00:00
2001-01-25 20:10:03 +00:00
1999-10-04 18:46:41 +00:00
2001-09-10 22:04:29 +00:00
2001-09-10 22:04:29 +00:00
1999-10-22 11:32:49 +00:00
2003-12-05 14:59:14 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
2000-03-06 21:18:43 +00:00
2001-04-20 15:03:37 +00:00
2001-12-19 12:32:07 +00:00
2000-11-08 17:28:24 +00:00
2004-01-26 18:15:16 +00:00
2001-05-18 17:22:06 +00:00
1999-10-06 15:30:38 +00:00
1999-10-04 18:46:41 +00:00
1999-10-06 15:30:38 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
2001-09-10 22:04:29 +00:00
1999-10-04 18:46:41 +00:00
1999-11-26 05:19:02 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-20 18:44:39 +00:00
1999-10-04 18:46:41 +00:00
2001-02-23 18:44:00 +00:00
2005-11-07 13:28:40 +00:00
1999-10-04 18:46:41 +00:00
2001-05-15 13:02:07 +00:00
2000-08-08 21:19:35 +00:00
2004-01-26 18:15:16 +00:00
1999-10-04 18:46:41 +00:00
2000-05-07 07:40:13 +00:00
2001-08-17 20:13:27 +00:00
2000-02-14 08:11:56 +00:00
1999-10-04 18:46:41 +00:00
1999-11-26 05:18:32 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
2004-01-26 18:15:16 +00:00
2000-02-14 08:11:56 +00:00
2001-09-10 22:04:29 +00:00
1999-10-04 18:46:41 +00:00
2001-06-20 18:55:21 +00:00
2001-12-21 11:59:54 +00:00
2001-09-10 22:04:29 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
2003-10-29 19:38:11 +00:00
2001-05-15 13:02:07 +00:00
2003-06-17 22:10:30 +00:00
1999-10-04 18:46:41 +00:00
2001-05-15 13:02:07 +00:00
2001-05-15 13:02:07 +00:00
2001-03-08 17:58:18 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
2003-10-25 13:11:10 +00:00
2002-07-07 20:45:38 +00:00
2001-05-15 13:02:07 +00:00
2001-05-15 13:02:07 +00:00
2000-04-03 00:09:34 +00:00
2002-11-20 23:45:53 +00:00
2000-06-15 19:37:09 +00:00
2001-11-01 08:18:39 +00:00
2000-11-08 17:28:24 +00:00
1999-10-04 18:46:41 +00:00
2004-01-26 18:15:16 +00:00
2004-01-26 18:15:16 +00:00
2001-09-10 22:04:29 +00:00
2004-04-17 10:58:20 +00:00
1999-10-04 18:46:41 +00:00
2001-03-08 17:58:18 +00:00
2001-11-18 21:20:09 +00:00
2000-03-06 21:18:43 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-12-29 23:54:42 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
2001-03-08 17:58:18 +00:00
2001-09-10 22:04:29 +00:00
1999-10-04 19:53:30 +00:00
1999-10-06 12:55:16 +00:00
1999-10-04 18:46:41 +00:00
2005-08-23 22:51:38 +00:00
2001-03-08 17:58:18 +00:00
2001-05-18 17:22:06 +00:00
2001-03-08 17:58:18 +00:00
1999-10-16 03:28:56 +00:00
2002-10-22 22:35:46 +00:00
2002-07-22 00:33:27 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
2002-01-18 21:50:18 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
2001-05-15 13:02:07 +00:00
1999-10-04 18:46:41 +00:00
2001-09-10 22:04:29 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
1999-10-05 13:00:09 +00:00
1999-10-04 18:46:41 +00:00
2000-07-25 02:13:26 +00:00
2000-07-24 20:18:15 +00:00
2000-03-06 21:18:43 +00:00
2000-04-19 09:35:17 +00:00
2000-11-08 17:28:24 +00:00
2001-08-11 11:24:06 +00:00
2000-09-05 19:44:25 +00:00
2001-09-10 22:04:29 +00:00
2000-02-14 08:11:56 +00:00
1999-11-10 10:17:19 +00:00
2000-09-18 07:04:53 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
2003-10-20 11:16:21 +00:00
1999-10-04 18:46:41 +00:00
1999-10-04 18:46:41 +00:00
2001-09-10 22:04:29 +00:00
2001-02-05 21:20:06 +00:00
2000-11-27 19:17:44 +00:00
1999-10-04 18:46:41 +00:00
2000-05-22 16:47:45 +00:00
2000-11-08 17:28:24 +00:00
1999-10-04 18:46:41 +00:00
2001-02-22 07:27:49 +00:00
2001-04-12 18:56:30 +00:00
2002-01-25 14:28:51 +00:00
2003-10-25 13:11:10 +00:00
2001-06-07 06:18:10 +00:00
2001-09-11 10:40:23 +00:00
2003-05-15 17:34:20 +00:00
1999-10-11 17:42:35 +00:00
2000-11-04 19:21:14 +00:00
2000-11-08 17:28:24 +00:00
2000-05-02 05:46:45 +00:00
1999-10-04 18:46:41 +00:00
2000-03-06 21:18:43 +00:00
2000-08-08 21:19:35 +00:00
2000-04-11 19:10:18 +00:00
2000-11-08 17:28:24 +00:00
2001-07-19 08:58:53 +00:00
2000-11-21 16:56:14 +00:00
2001-07-22 21:11:12 +00:00
1999-10-25 11:25:54 +00:00
2000-11-08 17:28:24 +00:00
2000-03-22 15:35:35 +00:00
2000-04-11 19:10:18 +00:00
2004-04-17 10:58:20 +00:00
2000-04-04 09:04:39 +00:00
2001-03-15 22:00:45 +00:00
2001-05-15 13:02:07 +00:00
2000-04-10 22:33:43 +00:00
2000-05-24 14:38:37 +00:00
2002-10-21 16:10:50 +00:00
2000-04-18 23:30:42 +00:00
1999-10-04 18:46:41 +00:00