nested class inheritance
Gor Gyolchanyan
gor.f.gyolchanyan at gmail.com
Sat Jul 14 09:52:25 PDT 2012
On Sat, Jul 14, 2012 at 8:17 PM, deadalnix <deadalnix at gmail.com> wrote:
> On 14/07/2012 08:27, Gor Gyolchanyan wrote:
>
>> On Sat, Jul 14, 2012 at 12:31 AM, Andrei Alexandrescu
>>
>> <SeeWebsiteForEmail at erdani.org <mailto:SeeWebsiteForEmail@**erdani.org<SeeWebsiteForEmail at erdani.org>
>> >>
>> wrote:
>>
>> On 7/13/12 3:49 PM, Gor Gyolchanyan wrote:
>>
>> On Fri, Jul 13, 2012 at 11:41 PM, Andrei Alexandrescu
>> <SeeWebsiteForEmail at erdani.org
>> <mailto:SeeWebsiteForEmail@**erdani.org<SeeWebsiteForEmail at erdani.org>
>> >
>> <mailto:SeeWebsiteForEmail at __e**rdani.org <http://erdani.org>
>>
>> <mailto:SeeWebsiteForEmail@**erdani.org<SeeWebsiteForEmail at erdani.org>
>> >>>
>>
>> wrote:
>>
>> On 7/13/12 3:36 PM, Gor Gyolchanyan wrote:
>>
>> The initial question was: why does DMD 2.059 reject
>> this if this
>> makes
>> sense?
>> It's not even a new feature. It's a (possibly) new (and
>> apparently
>> sensible) use case of an existing feature.
>>
>>
>> I think the simple answer is there was no provision for it.
>> The
>> feature copies the Java feature, and I don't think Java has
>> something like what you defined.
>>
>> Andrei
>>
>>
>> Well, the nested classes are pretty much useless without this
>> feature.
>> Except for translating Java code. If I had multiple inheritance,
>> I'd
>> just make the Apple as base class and have all the seeds virtually
>> derive from it. Not having multiple inheritance drove me to try
>> the next
>> best think. And after it failed, I complained about it.. And here
>> we
>>
>> are. Is it a difficult thing to fix?
>>
>>
>> I don't know, you may want to submit an enhancement request.
>>
>> Andrei
>>
>>
>> http://d.puremagic.com/issues/**show_bug.cgi?id=8389<http://d.puremagic.com/issues/show_bug.cgi?id=8389>
>>
>> Anyone who thinks this is important, please vote up.
>>
>> --
>> Bye,
>> Gor Gyolchanyan.
>>
>
> This is something to do, but I don't know if it is really that important.
>
It's already fixed and will be in DMD 2.060
--
Bye,
Gor Gyolchanyan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120714/c79c6e18/attachment-0001.html>
More information about the Digitalmars-d
mailing list