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: 08d595b47242
Choose a base ref
...
head repository: ziglang/zig
compare: 1eecfdaa9b9c
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Feb 23, 2018

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

    Allow implicit casts from container types to nullable const pointers to
    said container type.  That is:
    
        fn f() void {
            const s = S {};
            g(s);   // Works.
            g(&s);  // So does this.
        }
    
        fn g(_: ?&const S) void {  // Nullable const pointer.
        }
    
    Fixes #731.
    bnoordhuis committed Feb 23, 2018
    Copy the full SHA
    f11b948 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2018

  1. Merge pull request #785 from bnoordhuis/fix731

    allow implicit cast from `S` to `?&const S`
    andrewrk committed Feb 26, 2018
    Copy the full SHA
    1eecfda View commit details
    Browse the repository at this point in the history