struct aliases
Jarrett Billingsley
kb3ctd2 at yahoo.com
Wed Nov 14 16:27:42 PST 2007
"0ffh" <frank at frankhirsch.youknow.what.todo.net> wrote in message
news:fhfrgv$l4p$1 at digitalmars.com...
>
> No sweat!
>
> class C
> {
> union
> {
> struct data
> {
> int x, y;
> }
> struct
> {
> int x, y;
> }
> }
> }
almost:
class C
{
union
{
struct Data
{
int x, y;
}
Data data;
struct
{
int x, y;
}
}
}
Course those members could be put into a template and then mixed in.
More information about the Digitalmars-d-learn
mailing list