Re: [Vala] Cannot have field and method with the same name



One more note (sorry for flood):

You have to use () for method so you know whether
you access method or field.

It's not so simple, because you can assign this function as a callback
(delegate or signal) somewhere:

object1.delegate_instance = object2.stop;
object1.signal_instance.connect(object2.stop);

So simple syntax rule: "foo() = function, foo = not function" does not
apply here. It's a semantic issue.

best regards,

-- 
Mój klucz publiczny o identyfikatorze 1024D/E12C5A4C znajduje się na
serwerze hkp://keys.gnupg.net

My public key with signature 1024D/E12C5A4C is on the server
hkp://keys.gnupg.net

Attachment: signature.asc
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]