diff options
| author | Drahflow <drahflow@gmx.de> | 2015-04-14 16:30:22 +0200 |
|---|---|---|
| committer | Drahflow <drahflow@gmx.de> | 2015-04-14 16:30:22 +0200 |
| commit | 07c207faf05373bcd409d19ff1c3c57516f69acd (patch) | |
| tree | 57f8fa9ef1244c47312f405d65178d02e87b7518 /compiler | |
| parent | 3f97bff6aca06eaeb6999b094f2ba241de31fc0e (diff) | |
Fixes to co-iteration
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/standardClient.ey | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/compiler/standardClient.ey b/compiler/standardClient.ey index b31011c..7e9d94b 100644 --- a/compiler/standardClient.ey +++ b/compiler/standardClient.ey @@ -600,6 +600,10 @@ { 0 earlierType * sys .typed .type 0 neq } { 0 } + # General integers co-iterate only if equal + { 0 earlierType * 0 laterType * neq } + { 0 } + # Who came first determines iteration range { 2 earlierType * 1 neg neq } { earlierType 1 } @@ -608,12 +612,9 @@ { 2 laterType * 1 neg neq } { laterType 1 } - # General integers co-iterate iff equal - { 0 earlierType * 0 laterType * eq } - { earlierType 1 } - + # If none defines a range, take the first { 1 } - { 0 } + { earlierType 1 } ] conds } /commonIterationType deff |
