Type | Bug | Status | tested | Date | 7-Feb-2010 20:26 |
---|---|---|---|---|---|
Version | alpha 97 | Category | Native | Submitted by | Sunanda |
Platform | All | Severity | minor | Priority | normal |
Summary | Can't LOOP 100% |
---|---|
Description |
This is what happens if you try LOOP with a PERCENT! loop 100% [print true] ** Script error: invalid argument: 100% ** Where: loop ** Near: loop 100% [print true] But LOOP is defined as taking a NUMBER! help loop USAGE: LOOP count block ... ARGUMENTS: count -- Number of repetitions (number!) And NUMBER! is defined to include PERCENT! >> help number! NUMBER! is a typeset of value: make typeset! [integer! decimal! percent!] And I can do equivalent loops with FOR: for n 10% 40% 10% [print true] true true true true |
Example code |
loop 100% [print true] |
Assigned to | n/a | Fixed in | alpha 98 | Last Update | 6-May-2010 09:19 |
---|
Comments | |
---|---|
(0002009)
meijeru 9-Feb-2010 11:05 |
REPEAT admits percent! without protesting but does not seem to do anything:
>> repeat i 2.5 [print i] 1 2 >> repeat i 250% [print i] == none |
(0002335)
BrianH 6-May-2010 09:19 |
Both are fixed in alpha 98. |
Date | User | Field | Action | Change |
---|---|---|---|---|
6-May-2010 09:19 | BrianH | Status | Modified | reviewed => tested |
6-May-2010 09:19 | BrianH | Status | Modified | built => reviewed |
6-May-2010 09:19 | BrianH | Comment : 0002335 | Added | - |
1-May-2010 03:55 | carl | Fixedin | Modified | => alpha 98 |
1-May-2010 03:55 | carl | Status | Modified | reviewed => built |
9-Feb-2010 11:05 | meijeru | Comment : 0002009 | Added | - |
7-Feb-2010 21:13 | BrianH | Description | Modified | - |
7-Feb-2010 21:13 | BrianH | Category | Modified | Datatype => Native |
7-Feb-2010 21:13 | BrianH | Status | Modified | submitted => reviewed |
7-Feb-2010 20:26 | sunanda | Ticket | Added | - |