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

user defined immediate classes #742

Closed
nikodemus opened this issue Jul 12, 2021 · 1 comment
Closed

user defined immediate classes #742

nikodemus opened this issue Jul 12, 2021 · 1 comment
Labels
design Design questions and issues duplicate Duplicate of another bug feature-lang Language or library feature
Milestone

Comments

@nikodemus
Copy link
Owner

nikodemus commented Jul 12, 2021

Assuming slots are by default immutable, and you need to mark them as mutable somehow:

class MyThing { value::SomeConcreteClass }
   ...
end

means MyThing could be represented with an datum pointing directly to the SomeConcreteClass instance, instead of to a heap allocation for MyThing instance.

@nikodemus nikodemus modified the milestones: Foolang 0.3.0, Later Jul 12, 2021
@nikodemus nikodemus added design Design questions and issues feature-lang Language or library feature labels Jul 12, 2021
@nikodemus nikodemus added the duplicate Duplicate of another bug label Jul 29, 2021
@nikodemus
Copy link
Owner Author

Syntax question resolved in #792, implementation of the optimization in #803.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design Design questions and issues duplicate Duplicate of another bug feature-lang Language or library feature
Projects
None yet
Development

No branches or pull requests

1 participant