> > Point p_result = p.add(p_other);// compiler error
How about
Point p_result = p.add(p_other) as Point;
Nice day
Nor Jaidi Tuah
[https://drive.google.com/uc?id=1b4cWTCBfgIRVuVv9iDUuHkscey4c5Ug9]
PRIVILEGED/CONFIDENTIAL information may be contained in this message. If you
are
I need to define a function in a superclass that should return the same
type of object on which it is called
example : (constructors, functions and properties removed, for clarity)
class Tuple {
> public Tuple add (Tuple another) {
> // ...
> }
> }
> class Point : Tuple {
>//
.
Thanks,
Robert
On 06/03/2012 01:57 PM, Robert Schroll wrote:
Hi all,
Is it possible to treat classes as objects in Vala, similar to how
delegates let you treat methods as objects?
What I'm trying to do is go through a list of classes and call a static
method on each. In Python, I could do
On Wed, Aug 03, 2011 at 10:57:16PM +0200, Jens Georg wrote:
On Mi, 2011-08-03 at 20:39 +0200, Pavol Klačanský wrote:
Hi,
why somebody uses this. prefix and somebody doesn't, I have tried and it
worked with or without it
It's a matter of taste and or coding guidelines or explicitly
On Wed, 2011-08-03 at 20:39 +0200, Pavol Klačanský wrote:
Hi,
why somebody uses this. prefix and somebody doesn't, I have tried and it
worked with or without it
1.
class Test {
private int i;
public Test(int i) {
this.i = i; // field is assigned by variable
i = this.i; //
Hi,
why somebody uses this. prefix and somebody doesn't, I have tried and it
worked with or without it
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list
On Mi, 2011-08-03 at 20:39 +0200, Pavol Klačanský wrote:
Hi,
why somebody uses this. prefix and somebody doesn't, I have tried and it
worked with or without it
It's a matter of taste and or coding guidelines or explicitly avoid
shadowing of object members by local variables.
this can be
Hi Yu,
Thanks again,
With your post I began to understand something abou the name convention
and style settings. Now I try to do some test.
In order to set GTK properties do you think it always be this way for
ever? I was asking why one can't set properties directly like code :