Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ziglang/zig
base: 439621e44a68
Choose a base ref
...
head repository: ziglang/zig
compare: 0f449a3ec180
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Feb 26, 2018

  1. allow implicit cast from &const to ?&const &const

    Allow implicit casts from n-th degree const pointers to nullable const
    pointers of degree n+1.  That is:
    
        fn f() void {
            const s = S {};
            const p = &s;
            g(p);   // Works.
            g(&p);  // So does this.
        }
    
        fn g(_: ?&const &const S) void {  // Nullable 2nd degree const ptr.
        }
    
    Fixes #731 some more.
    bnoordhuis committed Feb 26, 2018
    Copy the full SHA
    9aa65c0 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2018

  1. Merge pull request #796 from bnoordhuis/fix731-more

    allow implicit cast from &const to ?&const &const
    andrewrk committed Feb 28, 2018
    Copy the full SHA
    0f449a3 View commit details
    Browse the repository at this point in the history