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

Classes: add tests for allocating classes in various regions #2290

Closed
catamorphism opened this issue Apr 25, 2012 · 5 comments
Closed

Classes: add tests for allocating classes in various regions #2290

catamorphism opened this issue Apr 25, 2012 · 5 comments
Labels
A-codegen Area: Code generation A-type-system Area: Type system
Milestone

Comments

@catamorphism
Copy link
Contributor

(that is, make sure that @-classes work and that classes can be allocated on the exchange heap. Right now I think classes are either always or never stack-allocated. I need to sort this out.)

@ghost ghost assigned catamorphism Apr 25, 2012
@catamorphism
Copy link
Contributor Author

(to fix this, I will probably have to change the translation for ctors to allocate memory for the self object outside the constructor, and pass it into the ctor code)

@catamorphism
Copy link
Contributor Author

Deferring this after discussion with @nikomatsakis and @pcwalton . We agreed that @-classes probably aren't useful enough to be worth the effort. Instead, I'll file an RFC for static fns, which would address some of the same problems.

@catamorphism
Copy link
Contributor Author

(Closing this issue is blocked on the outcome of #2376)

@brson
Copy link
Contributor

brson commented Aug 2, 2012

Obsolete?

@brson brson closed this as completed Aug 2, 2012
@catamorphism
Copy link
Contributor Author

Yes, obsolete; this is one of the things max/min classes explicitly addresses.

@catamorphism catamorphism removed their assignment Jun 16, 2014
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation A-type-system Area: Type system
Projects
None yet
Development

No branches or pull requests

2 participants