Re: [Vala] methods without arguments don't take void ?



* Xavier Bestel <xavier bestel free fr> wrote:
Hi,

it seems like I can't add a method like that:
      public int mymethod(void) {....}
instead I have to remove the void:
      public int mymethod() {....}
Otherwise valac tells me:
      error: syntax error, unexpected ), expecting get or set or identifier
Is that what's expected ?

Yes. Vala is not C. :-)

-- 
 Ed Schouten <ed fxq nl>
 WWW: http://g-rave.nl/

Attachment: pgpGTO4qBSNQG.pgp
Description: PGP signature



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