vala r2434 - in trunk: . vala
- From: ryanl svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2434 - in trunk: . vala
- Date: Thu, 12 Feb 2009 13:49:10 +0000 (UTC)
Author: ryanl
Date: Thu Feb 12 13:49:10 2009
New Revision: 2434
URL: http://svn.gnome.org/viewvc/vala?rev=2434&view=rev
Log:
2009-02-12 Ryan Lortie <desrt desrt ca>
* vala/valamethod.vala:
For now, just forbid ref/out paramters on yielding functions since
they are hard to deal with.
Modified:
trunk/ChangeLog
trunk/vala/valamethod.vala
Modified: trunk/vala/valamethod.vala
==============================================================================
--- trunk/vala/valamethod.vala (original)
+++ trunk/vala/valamethod.vala Thu Feb 12 13:49:10 2009
@@ -609,6 +609,16 @@
process_attributes ();
+ if (coroutine) {
+ foreach (var param in parameters) {
+ if (param.direction != ParameterDirection.IN) {
+ error = true;
+ Report.error (param.source_reference, "Reference parameter types are not yet supported for yielding functions");
+ return false;
+ }
+ }
+ }
+
if (is_abstract) {
if (parent_symbol is Class) {
var cl = (Class) parent_symbol;
@@ -847,3 +857,5 @@
return true;
}
}
+
+// vim:sw=8 noet
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]