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

Refactoring #37

Merged
merged 4 commits into from
Oct 25, 2024
Merged

Refactoring #37

merged 4 commits into from
Oct 25, 2024

Conversation

mjp41
Copy link
Collaborator

@mjp41 mjp41 commented Oct 25, 2024

This moves a bunch of code out of DynObject that is related to the region management.

It also restricts the parent pointing references to a single incoming reference from the enclosing region. This is on the way to adding the explicit bridge object.

Copy link
Collaborator

@xFrednet xFrednet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny comment/question. The test looks good to me

void add_reference(DynObject* src, DynObject* target);
void remove_reference(DynObject* src_initial, DynObject* old_dst_initial);
void move_reference(DynObject* src, DynObject* dst, DynObject* target);
void create_region(DynObject* object);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems weird to me, that this takes a DynObject and returns void. Is this just temporary to get these refactorings in?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I was trying not to change stuff in the refactoring. So the next commit can actually update stuff.

@mjp41 mjp41 merged commit 7fc63d3 into main Oct 25, 2024
5 checks passed
@mjp41 mjp41 deleted the region_object branch October 25, 2024 09:31
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