-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix to List.CartesianProduct node #9431
Merged
aparajit-pratap
merged 6 commits into
DynamoDS:RC2.1.0_master
from
aparajit-pratap:fixApplyNested_2.1
Jan 16, 2019
Merged
fix to List.CartesianProduct node #9431
aparajit-pratap
merged 6 commits into
DynamoDS:RC2.1.0_master
from
aparajit-pratap:fixApplyNested_2.1
Jan 16, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mjkkirschner I'm not happy with this solution of adding more |
aparajit-pratap
added a commit
to aparajit-pratap/Dynamo
that referenced
this pull request
Jan 16, 2019
* fix to List.CartesianProduct node * add DYN file for test * revised fix * reuse code * add string overload for ValueAtIndex method for for loops * add for loop test with single value to array promotion
7 tasks
aparajit-pratap
added a commit
that referenced
this pull request
Jan 16, 2019
reddyashish
added a commit
to reddyashish/Dynamo
that referenced
this pull request
May 31, 2019
7 tasks
reddyashish
added a commit
that referenced
this pull request
Jun 1, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Fixes regression caused by #9388 in
List.CartesianProduct
and adds missing test.As a result of #9388
for
loop behavior had changed. As a result of makingGet.ValueAtIndex
disallow array promotion of its list argument, for loops inside imperative language blocks no longer iterated over a single value. Previously the single value was getting promoted to an array before thefor
loop could iterate over it. This is because the for loop expression is first compiled to AST's as shown in this example:The fix is to add yet another ValueAtIndex like ZT method specifically for
for
loop compilation that does not have theAllowArrayPromotion(false)
attribute.Declarations
Check these if you believe they are true
*.resx
filesReviewers
@mjkkirschner
@QilongTang
FYIs
@smangarole