-
Notifications
You must be signed in to change notification settings - Fork 145
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
'memory' must be strictly typed #761
Comments
@Graur can you please help |
@yegor256 How can we check types in EO? By size? |
@Graur yes, just checking by size will be enough |
@MCJOHN974 Can you help us here? |
@MCJOHN974 What about the progress of this task? Do you need some help? |
@Graur what's up with this? |
@yegor256 How do you think, do we need this changes right now? They will break a lot of our existing code. I asked because I wrote some tests and understood the consequences |
@Graur really "a lot"? let's disable the tests that fail and add puzzles. This change is very important, we must introduce it. |
Let's make sure
memory
can only accept one "type" of data primitives. In other words, this code should lead to an error:At the first line we save
int
and at the second one attempt to savefloat
. The second line should cause an error.Let's not forget to update the "Origins of Objects" paper.
p.s. Moreover, let's implement
memory
in EO instead of Java and let it useram
. This will mean that it will fail with "not enough memory" if we make an attempt to store a longer string into it:The text was updated successfully, but these errors were encountered: