Re: [Vala] feature request + proposed patch: infer enum scope from expected type
- From: Thomas Jollans <t jollybox de>
- To: vala-list gnome org
- Subject: Re: [Vala] feature request + proposed patch: infer enum scope from expected type
- Date: Wed, 27 Jun 2012 16:26:57 +0200
On 06/27/2012 03:57 PM, Timo Kluck wrote:
Dear vala-list,
Have you tried bugging vala-devel-list?
I was wondering if anyone has had time to consider this patch [1] to
Vala I submitted a while ago? It's a feature I would love to have as a
part of the language.
Regards, Timo
[1] https://bugzilla.gnome.org/show_bug.cgi?id=666035
2011/12/13 Timo Kluck <tkluck infty nl>:
Dear vala-developers,
I thought it would be nice if it was possible to write:
A.bind_property("prop", B, "prop", SYNC_CREATE|BIDIRECTIONAL);
and not having to specify the scope GLib.BindingFlags:
A.bind_property("prop", B, "prop",
GLib.BindingFlags.SYNC_CREATE|GLib.BindingFlags.BIDIRECTIONAL);
I have written a small patch taking care of that, and posted it at
bugzilla [1]. There's a .vala file with testcases too.
The case of a single enumeration value is a very minor change: it only
affects code that used to give a compiler error. However, the case of
flags has to change the way that the operators | and & use their
target value. I cannot really oversee whether this will give new
problems.
I'd love to hear your feedback!
Best regards,
Timo Kluck
[1] https://bugzilla.gnome.org/show_bug.cgi?id=666035
_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]