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

Reject instantiating RefCounted with interface types #2977

Merged
merged 1 commit into from
Feb 11, 2015

Conversation

JakobOvrum
Copy link
Member

Issue noticed in this thread.

For the purposes of forward-compatibility, RefCounted has rejected classes because it is intended that in the future RefCounted!SomeClass reference-counts the actual instance and not just a class reference. Once implemented, interfaces should be handled in a similar way.

It is my intention to work on class support for RefCounted, but in case the status quo continues for a long time, we have to reject interfaces as well.

monarchdodra added a commit that referenced this pull request Feb 11, 2015
Reject instantiating RefCounted with interface types
@monarchdodra monarchdodra merged commit f4d3493 into dlang:master Feb 11, 2015
@monarchdodra
Copy link
Collaborator

If RefCounted does not accept classes, then it accepting interfaces is a bug. Merging.

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