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

Implicity define a program's home as its owner. #736

Merged
merged 3 commits into from
Nov 8, 2024

Conversation

wyld-sw
Copy link
Member

@wyld-sw wyld-sw commented Nov 7, 2024

Summary

Allow features that get object links to function on programs - by returning the object owner.

Rationale

This suggestion has been around for a while, but I discovered that send_home() already does this for programs, so that precedent helped the decision.

Details

  • {links}, GETLINK and GETLINKS_ARRAY now report a program's link as its owner.
  • SETLINK, SETLINKS_ARRAY, @link, @relink, and @unlink prevent changing the implicit link, now with a more informative error message.

Bonus fix?

Despite the documentation, SETLINK did not accept #-1 as a destination. It does now.

Future work

Refactor all link logic to use a standard set of functions.

@wyld-sw wyld-sw requested a review from tanabi November 8, 2024 00:47
@tanabi tanabi merged commit 01a9b93 into fuzzball-muck:master Nov 8, 2024
1 of 17 checks passed
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