-
Notifications
You must be signed in to change notification settings - Fork 69
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
Abstract types cannot have optional references #19
Comments
(Note: example previously wouldn't compile, pasted a bad version somehow. Edited.) To add another point on this issue, it's possible to re-assign an optional reference such as with
Back when I was trying to understand optional better, I asked this question, which I went to link and didn't realize you had been one of the answerers :) http://stackoverflow.com/questions/11459270/ I composed my own answer ultimately... in which I said:
If it is the case that an |
That is most interesting. it looks like member function |
No, please, not again. The problem of implementing optional reference assignment is not solvable. What you say indeed makes sense. But what the opponents say also makes sense. and these two senses cannot be put together. This is the source of endless discussions, where everybody is right. I cannot point you to any of these discussions as I forgot where tey are. Here is a link to the summary: |
I am getting a bit confused. This issue is about "Abstract types cannot have optional references". When I have some spare time I will try to change the signature of |
Will be good to see abstract types work. I've opened a new issue for the other concern--apologies in advance. |
I noticed this when trying out the optional references:
The error that comes up is:
One is able to have raw references to an abstract type. So it would seem that an optional reference could be had to an abstract type as well?
The text was updated successfully, but these errors were encountered: