I've only been taught java, but can someone explain to me what this piece of code does (from the patch)?
+ clock->panel = panel;
+ panel->clock = clock;
Phoronix: New Feature To Wayland's Weston: A Clock
If not being able to tell the time while running the reference Weston compositor held you back from experimenting with Wayland, fear not. Logging functionality for Weston was also merged...
http://www.phoronix.com/vr.php?view=MTExNjc
I've only been taught java, but can someone explain to me what this piece of code does (from the patch)?
+ clock->panel = panel;
+ panel->clock = clock;
AFAIK that's equivalent to clock.panel = panel; panel.clock = clock; in java. I suppose that just allows to easy reference the clock and the panel from each other. I don't know if that's what you wanted to know or if you already knew that, so sorry if I'm repeating something you already know.
oh michael, you gotta be kidding me.. being on your level you just cannot afford mixing slovakia and slovenia.. :-( j
this however speaks for itself: http://permalink.gmane.org/gmane.com...and.devel/3573
Pics people, pics.
The only wayland dev that publishes pics and videos from his work is Pekka.
I know its not their job but its good to see whats being implemented.![]()
In this code, both clock and panel are pointers instead of local objects. (Type *Clock and *Panel instead of Clock and Panel).
In Java, every object is a pointer, so the language just hides that from you.
In C++, you have to dereference pointers to get to their contents. One of the common ways is to use -> instead of ., to access members of that class.
There's no way I'm buying it until it gets reversi.