[Issue 3934] Some untidy attributes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 24 07:54:05 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3934
--- Comment #23 from Stewart Gordon <smjg at iname.com> 2011-07-24 07:54:03 PDT ---
(In reply to comment #22)
> (In reply to comment #21)
>> (In reply to comment #20)
>>> class Foo {}
>>> class Bar : public Foo {}
>>> void main() {}
>>
>> There are no attributes as such in your example. And I don't see
>> anything that isn't meaningful. So what do you mean?
>
> I think bearophile is referring to the »public« protection attribute in the
> SuperClass. This is explicitly allowed by the grammar, but I don't know off
> hand if it actually has any effect in the current implementation, other than
> giving C++ programmers a wrong sense of coziness maybe. ;)
Therein lies my point - it isn't an attribute as such, and it isn't
meaningless. It means the same as in C++, though it doesn't make sense to have
the feature in D. But this point is covered by issue 177.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list