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

Print location of method definition when listing all methods #182

Closed
ViralBShah opened this issue Aug 20, 2011 · 3 comments
Closed

Print location of method definition when listing all methods #182

ViralBShah opened this issue Aug 20, 2011 · 3 comments
Assignees

Comments

@ViralBShah
Copy link
Member

In this case, it would be nice if a location, such as floatfuncs.j:82, could be printed for every definition.

julia> float64
Methods for generic function float64
float64(Array{T,n},)
float64(String,)
float64(Any,)

@ghost ghost assigned JeffBezanson Aug 20, 2011
@JeffBezanson
Copy link
Member

Very good idea.

@ViralBShah
Copy link
Member Author

Every time I dig around into the codebase, I spend a fair amount of time looking for the right definition. Often, multiple definitions are spread out across files, and this would be quite nice to have.

-viral

On 20-Aug-2011, at 10:21 PM, JeffBezanson wrote:

Very good idea.

Reply to this email directly or view it on GitHub:
#182 (comment)

@ViralBShah
Copy link
Member Author

Seems that method locations don't get printed in some cases, where Any is involved. Here's a snippet from +:

+() at operators.j:24
+(Number,) at operators.j:30
+(Any,Any,Any)
+(Any,Any,Any,Any)
+(Any,Any,Any,Any,Any)
+(Any,Any,Any,Any...) at operators.j:42
+(Complex{T<:Real},Complex{T<:Real}) at complex.j:207

julia> convert
Methods for generic function convert
convert((Any...,),(Any...,))
convert(Type{Bool},Number) at bool.j:3
convert(Type{Int8},Bool) at int.j:3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants