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

org.eolang.cage must prohibit different object "types" #1307

Closed
yegor256 opened this issue Oct 4, 2022 · 8 comments · Fixed by #2338
Closed

org.eolang.cage must prohibit different object "types" #1307

yegor256 opened this issue Oct 4, 2022 · 8 comments · Fixed by #2338
Assignees

Comments

@yegor256
Copy link
Member

yegor256 commented Oct 4, 2022

The cage object must return an error if we try to .write an object that is not a copy of the abstract object that was saved before.

@yegor256
Copy link
Member Author

yegor256 commented Oct 4, 2022

@Graur please, help

@yegor256
Copy link
Member Author

@maxonfjvipon please, help

@yegor256 yegor256 assigned maxonfjvipon and unassigned Graur Jul 11, 2023
@maxonfjvipon
Copy link
Member

maxonfjvipon commented Jul 13, 2023

@yegor256 please have a look at this.

[x] > obj
  x > @
obj 1 > obj1

# Case 1
cage obj > cg
cg.write obj1

# Case 2
cage obj1 > cg
cg.write obj
  1. Init cage with abstract object obj then write its copy obj1 with bounded x
  2. Init cage with copy (of obj) obj1 then write abstract obj

Should these both cases be legal in scope of the task?

@yegor256
Copy link
Member Author

@maxonfjvipon both cases should be illegal, in my opinion

maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 27, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 27, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 27, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 27, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 27, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 28, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 28, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 28, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 28, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 28, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 28, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 28, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 28, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 31, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 31, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 31, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 31, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 31, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 31, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 31, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 31, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 31, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 31, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 31, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 31, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Jul 31, 2023
@0pdd
Copy link

0pdd commented Jul 31, 2023

@yegor256 2 puzzles #2335, #2336 are still not solved.

maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Aug 2, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Aug 2, 2023
maxonfjvipon added a commit to maxonfjvipon/eo that referenced this issue Aug 2, 2023
@0pdd
Copy link

0pdd commented Aug 10, 2023

@yegor256 2 puzzles #2335, #2373 are still not solved; solved: #2336.

@0pdd
Copy link

0pdd commented Aug 10, 2023

@yegor256 the puzzle #2373 is still not solved; solved: #2335, #2336.

@0pdd
Copy link

0pdd commented Aug 11, 2023

@yegor256 all 3 puzzles are solved here: #2335, #2336, #2373.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants