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

Unclear why garbage values are what they are in 38 #43

Closed
AtomToast opened this issue Mar 30, 2021 · 4 comments
Closed

Unclear why garbage values are what they are in 38 #43

AtomToast opened this issue Mar 30, 2021 · 4 comments

Comments

@AtomToast
Copy link

Hey, thanks a lot for the ziglings! They really are helping me get started.

In zigling number 38 you mention

    // Feel free to run this program without adding Zump. What does
    // it do and why?

For me it was unclear why exactly the garbage values are what they are. (2863311530, 170 and 2863311530).

So I went out and looked a bit to discover that they are basically just filled with 0xAAAAAA...

Then someone in the zig matrix room sent me the link to the zig documentation, clarifying why exactly this was the case

According to your contribution guidelines ziglings should be self contained, which this broke for me.

That is unless I missed something in an earlier zigling that explained this.

@AtomToast AtomToast changed the title Unclear garbage values are what they are in 38 Unclear why garbage values are what they are in 38 Mar 30, 2021
@ratfactor
Copy link
Owner

You're absolutely right. I need to add a note that clarifies this. Thank you!

@ratfactor
Copy link
Owner

@AtomToast Clarification added at the end of the exercise. Thanks again for pointing this out!

@endrin
Copy link

endrin commented Apr 16, 2021

I came here to ask the same question because I didn't read to the end of exercise... Thanks for adding this clarification and nice choice of placeholder bytes on the zig team side 😏

@ratfactor
Copy link
Owner

I came here to ask the same question because I didn't read to the end of exercise.

Hmm...I wonder if I need to draw attention to the end-of-exercise notes? Glad you found it!

vamega pushed a commit to vamega/ziglings that referenced this issue Jul 25, 2023
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

No branches or pull requests

3 participants