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

add default keyword constructor for immutables #6122

Closed
wants to merge 1 commit into from
Closed

Commits on Jun 29, 2015

  1. add default kw constructor for immutables

    For example, the type
    
        immutable X
            a::Int
            b::Int
        end
    
    now comes with the extra constructor:
    
        X(x::X; a=x.a, b=x.b) = new(a,b)
    
    Closes #5333.
    nolta committed Jun 29, 2015
    Configuration menu
    Copy the full SHA
    c263e77 View commit details
    Browse the repository at this point in the history