alias of member from pointer to struct?

Jarrett Billingsley kb3ctd2 at yahoo.com
Fri Apr 13 17:29:51 PDT 2007


"BCS" <ao at pathlink.com> wrote in message 
news:ce0a334393908c94bfc5c9037e4 at news.digitalmars.com...
> should this work?
>
> struct S
> {
> int i;
> }
>
> S* s;
>
> alias s.i foo;
>
>

No.  You cannot alias expressions. 




More information about the Digitalmars-d-learn mailing list