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 diamond exercise #184

Merged
merged 1 commit into from
May 14, 2024
Merged

Add diamond exercise #184

merged 1 commit into from
May 14, 2024

Conversation

ErikSchierboom
Copy link
Member

@ErikSchierboom ErikSchierboom commented May 14, 2024

During this exercise, I found that having a constant defined would cause the stack space check to fail.

@ErikSchierboom ErikSchierboom requested review from glennj and axtens May 14, 2024 15:56
@glennj
Copy link
Contributor

glennj commented May 14, 2024

During this exercise, I found that having a constant defined would cause the stack space check to fail.

Were you expecting the constant to exist on the stack?

@ErikSchierboom
Copy link
Member Author

I did not expect that, but maybe that's just how it works

@ErikSchierboom ErikSchierboom merged commit 079dd18 into main May 14, 2024
4 checks passed
@ErikSchierboom ErikSchierboom deleted the diamond branch May 14, 2024 17:06
@glennj
Copy link
Contributor

glennj commented May 14, 2024

According to the words list:

This is essentially syntactic sugar for the prior method of creating a new word containing the value x.

So I assume 42 constant answer is the same as : answer 42 ;

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