-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
implement getfield overloading #24960
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -898,6 +898,8 @@ export | |
|
||
# types | ||
convert, | ||
# getproperty, | ||
# setproperty!, | ||
fieldoffset, | ||
fieldname, | ||
fieldnames, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,16 +158,18 @@ Under the name `f`, the function does not support infix notation, however. | |
|
||
A few special expressions correspond to calls to functions with non-obvious names. These are: | ||
|
||
| Expression | Calls | | ||
|:----------------- |:---------------------- | | ||
| `[A B C ...]` | [`hcat`](@ref) | | ||
| `[A; B; C; ...]` | [`vcat`](@ref) | | ||
| `[A B; C D; ...]` | [`hvcat`](@ref) | | ||
| `A'` | [`adjoint`](@ref) | | ||
| `A.'` | [`transpose`](@ref) | | ||
| `1:n` | [`colon`](@ref) | | ||
| `A[i]` | [`getindex`](@ref) | | ||
| `A[i]=x` | [`setindex!`](@ref) | | ||
| Expression | Calls | | ||
|:----------------- |:----------------------- | | ||
| `[A B C ...]` | [`hcat`](@ref) | | ||
| `[A; B; C; ...]` | [`vcat`](@ref) | | ||
| `[A B; C D; ...]` | [`hvcat`](@ref) | | ||
| `A'` | [`adjoint`](@ref) | | ||
| `A.'` | [`transpose`](@ref) | | ||
| `1:n` | [`colon`](@ref) | | ||
| `A[i]` | [`getindex`](@ref) | | ||
| `A[i] = x` | [`setindex!`](@ref) | | ||
| `A.n` | [`getproperty`](@ref Base.getproperty) | | ||
| `A.n = x` | [`setproperty!`](@ref Base.setproperty!) | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We really need more documentation on how to use this, explaining the arguments to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, there are zero tests, so some tests would be good... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @stevengj FWIW I played with this a bit last night for PyCall, and just put up what I have so far in case it helps (won't be able to look again until tonight or tomorrow). The
https://github.com/ihnorton/PyCall.jl/tree/getfield_parasido There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ihnorton, thanks for looking into this! Yes, my plan is to release a PyCall 2.0 for Julia 0.7, and switch over completely to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I wrote them. Apparently I forgot to forgot to push them. |
||
|
||
## [Anonymous Functions](@id man-anonymous-functions) | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,6 +119,7 @@ Base.cat | |
Base.vcat | ||
Base.hcat | ||
Base.hvcat | ||
Base.vect | ||
Base.flipdim | ||
Base.circshift | ||
Base.circshift! | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keno asked me not to do so initially.