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

update deprecated Array constructor #260

Merged
merged 3 commits into from
Jan 28, 2017
Merged

Conversation

musm
Copy link
Contributor

@musm musm commented Jan 28, 2017

No description provided.

@musm
Copy link
Contributor Author

musm commented Jan 28, 2017

master failures might be related to JuliaLang/julia#20084 altough I have not actively looked into this

@@ -194,7 +194,7 @@ end

type Choices <: BuildStep
choices::Vector{Choice}
Choices() = new(Array(Choice,0))
Choices() = new(Vector{Choice}())
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choice[] is also possible here and below, not sure which you prefer?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's some discussion that Vector{T}() might get deprecated - hasn't happened yet, but evidently the zero arg form isn't loved by all

@musm
Copy link
Contributor Author

musm commented Jan 28, 2017

I feel like a lot of the inner constructors here are unnecessary

@@ -239,7 +239,7 @@ immutable SystemPaths <: DependencyProvider; end

show(io::IO, ::SystemPaths) = print(io,"System Paths")

using URIParser, Compat
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

module already has a using Compat so it is not needed to repeat it.

@tkelman tkelman merged commit e5cea53 into JuliaPackaging:master Jan 28, 2017
@tkelman
Copy link
Contributor

tkelman commented Jan 28, 2017

Thanks

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

Successfully merging this pull request may close these issues.

2 participants