• Create Account

#Actualpatrrr

Posted 23 October 2012 - 01:55 AM

That you can read and write from different elements in a union if the elements are structs and have the same prefix structure:

union {
struct {int x, y; };
struct {int u, v; };
}

x = 45;
cout << u;


I also like that the library and language is designed in such a way that the compilers can optimize usage of the library really well; gcc can optimize through almost everything in there.

#5patrrr

Posted 23 October 2012 - 01:55 AM

That you can read and write from different elements in a union if the elements are structs and have the same prefix structure:

union {
struct {int x, y; };
struct {int u, v; };
}

x = 45;
cout << u;


I also like that the library and language is designed in such a way that the compilers can optimize usage of the library really well; gcc can optimize through almost everything in there. It's a bit uncanny.

#4patrrr

Posted 23 October 2012 - 01:55 AM

That you can read and write from different elements in a union if the elements are structs and have the same prefix structure:

union {
struct {int x, y; };
struct {int u, v; };
}

x = 45;
cout << u;


I also like that the library and language is designed in such a way that the compilers can optimize usage of the library really well; gcc can optimize through almost everything in there. It's almost a bit uncanny.

#3patrrr

Posted 23 October 2012 - 01:54 AM

That you can read and write from different elements in a union if the elements are structs and have the same prefix structure:

union {
struct {int x, y; };
struct {int u, v; };
}

x = 45;
cout << u;


I also like that the library and language is designed in such a way that the compilers can optimize usage of the standard library really well; gcc can optimize through almost everything in there. It's almost a bit uncanny.

#2patrrr

Posted 23 October 2012 - 01:52 AM

That you can read and write from different elements in a union if the elements are structs and have the same prefix structure:

union {
struct {int x, y; };
struct {int u, v; };
}

x = 45;
cout << u;


#1patrrr

Posted 23 October 2012 - 01:52 AM

That you can read and write from different elements in a union if the elements are structs and have the same prefix structure:

union {
struct {int x, y; };
struct {int u, v; };
}


PARTNERS