alias class
Hasan Aljudy
hasan.aljudy at gmail.com
Sun Nov 12 20:17:21 PST 2006
Ary Manzana wrote:
> Hello.
>
> While trying to get some piece of parser code be covered by tests (I'm
> translating the DMD parser to Java) I found that this is possible:
>
> ---
> alias class Foo {
> }
>
> typedef class Bar {
> }
> ---
>
> What those attributes in a class suppose to mean? Just curiosity.
The grammar for alias and typedef is
alias Declaration
I don't know what the above means, I think it's not legal D code, I
think the compiler would complain about it, but, at the semantic pass.
At least that's what I have assumed.
More information about the Digitalmars-d-learn
mailing list