L
Larry Gates
Why do people talk about unions/maps as the same subject?
Larry Gates said:Why do people talk about unions/maps as the same subject?
Why do people talk about unions/maps as the same subject?
Why not ask someone who does so? According to google, no one has done
so here in the last 15 months.
Larry said:Why do people talk about unions/maps as the same subject?
Larry said:Why do people talk about unions/maps as the same subject?
Examples?
Larry Gates said:It came up in c.l.f. I wonder if what they mean is C-style unions and
perl-style maps.??
Larry Gates said:It came up in c.l.f. I wonder if what they mean is C-style unions and
perl-style maps.??
Why are you asking us, instead of c.l.f?
Why is clari.local.florida discussing programming techniques?
Alternatively, why do you care how a bunch of forthheads confuse two
languages they do not understand?
Richard
Larry said:It came up in c.l.f.
I wonder if what they mean is C-style unions and
perl-style maps.??
Chris said:That's not an example.
If you happen to guess that c.l.f means comp.lang.fortran, it may be
sufficient to locate an example using google (it was sufficient
yesterday; the same exact search failed this morning - that's GG for
you). I turns out that Larry Gates has finally followed the advice that
he's been given, and asked his question of the person who talked about
them. It's still not clear why he ever bothered asking anyone else.
Larry Gates said:In K&R §6.8, the example code is
union u_tag {
int ival;
float fval;
char *sval;
} u;
After it is initialized, is there a single value stored for u?
That code does not initialise anything. However, if it did, or if later
code assigned any value to any member of u, then yes, there would be a
single value stored for u. For example, if you do
u.ival=5;
then the value stored in u is that value. Also, at that point, the
values of u.fval and u.sval become (essentially) undefined.
Richard
Larry Gates said:What a time for Hollaender Baseball!
In Europe, I was shadowed by Dutch antiterrorism folks.
Tja.
> Nun hab ick wat zu reden: Ihr seid "peculiar people".
Eh? As Richard said, the way you speak real languages is broken.
Larry Gates said:And how would you render 1 Peter 2:9?
How do I know portugese?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.