Il 18/04/2013 23:38, Alexander Krivács Schrøder ha scritto:
Hi.

When you have an auto-property like

public int64 minutes { get; private set; }

in your class, the generated public .vapi file gets the exact same
signature, i.e.

public int64 minutes { get; private set; }

Wouldn't it make more sense to just leave out the "private set" part
from the .vapi, i.e. have it just be

public int64 minutes { get; }

Is there any good reason to include the "private set"? It's not like a
consumer of your library can do anything useful with that information
anyway, right? Internal classes, for instance, are left out of the .vapi
file...
Right, there shouldn't be any need of private set in a vapi.
_______________________________________________
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to