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



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 ?

Thanks,
        Xav





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