Re: Reference question
On Jan 28, 9:35 am, "Larry.Mart...@gmail.com"
<Larry.Mart...@gmail.com> wrote:
I have only been working with C++ for 3 years, and I've come across
some code I don't understand.
static struct ct {
char ns, fl;
short sf;
struct st
{
char sy, fq;
ct* n;
} __attribute__ ((packed)) * sta;
st& os() const
{
return (st&) sf;
}
} __attribute__ ((packed)) *mc;
My confusion is about the os method. It appears to me that it returns
a reference to the st struct. But how does returning sf become a
reference to st?
TIA
-larry
This code was written by one of those people that would get me fired
for arguing with them too much.
I would go to thier desk and tell them to stop writing garbage. I mean
everyone should know what a ct is and what its used for with our ESP
powers right?
Same for an ns, fl, or st right?
The names make it so obvious what this code is for!