Skip to content
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

.! not defined in comprehension #23236

Closed
bjarthur opened this issue Aug 13, 2017 · 0 comments
Closed

.! not defined in comprehension #23236

bjarthur opened this issue Aug 13, 2017 · 0 comments
Assignees
Labels
bug Indicates an unexpected problem or unintended behavior compiler:lowering Syntax lowering (compiler front end, 2nd stage)

Comments

@bjarthur
Copy link
Contributor

...yet it works on one of the for-loop values in isolation, and in map.

julia> X=[[true,false],[false,true]]
2-element Array{Array{Bool,1},1}:
 Bool[true, false]
 Bool[false, true]

julia> [.!x for x in X]
ERROR: UndefVarError: .! not defined

julia> .!X[1]
2-element BitArray{1}:
 false
  true

julia> map(x->.!x, X)
2-element Array{BitArray{1},1}:
 Bool[false, true]
 Bool[true, false]

this is on both 0.6 and 0.7-dev.

@JeffBezanson JeffBezanson self-assigned this Aug 14, 2017
@JeffBezanson JeffBezanson added compiler:lowering Syntax lowering (compiler front end, 2nd stage) bug Indicates an unexpected problem or unintended behavior labels Aug 14, 2017
JeffBezanson added a commit that referenced this issue Aug 14, 2017
comprehension eta-reduction needs to know that dot operators are not
function names.
ararslan pushed a commit that referenced this issue Sep 11, 2017
comprehension eta-reduction needs to know that dot operators are not
function names.

Ref #23243
(cherry picked from commit 37655e3)
ararslan pushed a commit that referenced this issue Sep 13, 2017
comprehension eta-reduction needs to know that dot operators are not
function names.

(cherry picked from commit 37655e3)
vtjnash pushed a commit that referenced this issue Sep 14, 2017
comprehension eta-reduction needs to know that dot operators are not
function names.

(cherry picked from commit 37655e3)
ararslan pushed a commit that referenced this issue Sep 15, 2017
comprehension eta-reduction needs to know that dot operators are not
function names.

(cherry picked from commit 37655e3)
ararslan pushed a commit that referenced this issue Sep 16, 2017
comprehension eta-reduction needs to know that dot operators are not
function names.

(cherry picked from commit 37655e3)
ararslan pushed a commit that referenced this issue Sep 18, 2017
comprehension eta-reduction needs to know that dot operators are not
function names.

(cherry picked from commit 37655e3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior compiler:lowering Syntax lowering (compiler front end, 2nd stage)
Projects
None yet
Development

No branches or pull requests

2 participants