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

exercises(all-your-base): example: fix for Zig 0.12.0-dev #367

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

ee7
Copy link
Member

@ee7 ee7 commented Jan 8, 2024

At the time of writing, Zig master supports every test file on the track. However, Zig master no longer supports some of the example solutions in this repo. Work towards that.

The track officially supports only Zig 0.11.0, but I'd like to support Zig master too when we can do that in a backwards-compatible way.


Resolve this error from the latest Zig master release:

$ zig version
0.12.0-dev.2063+804cee3b9
$ bin/run-tests all-your-base
Running tests for all-your-base...
all_your_base.zig:30:9: error: local variable is never mutated
    var result = try list.toOwnedSlice();
        ^~~~~~
all_your_base.zig:30:9: note: consider using 'const'

Resolve this error from the latest Zig master release:

    $ zig version
    0.12.0-dev.2063+804cee3b9
    $ bin/run-tests all-your-base
    Running tests for all-your-base...
    all_your_base.zig:30:9: error: local variable is never mutated
        var result = try list.toOwnedSlice();
            ^~~~~~
    all_your_base.zig:30:9: note: consider using 'const'
@ee7 ee7 requested a review from booniepepper January 8, 2024 09:19
@ee7 ee7 requested a review from ErikSchierboom January 25, 2024 18:33
@ee7 ee7 merged commit 7c1dc95 into exercism:main Jan 25, 2024
7 checks passed
@ee7 ee7 deleted the all-your-base-example-Zig-master branch January 25, 2024 19:16
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