[Gridflow-cvs] [svn] commit: r6745 - /trunk/src/classes2.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Sun Mar 6 15:29:55 EST 2011


Author: matju
Date: Sun Mar  6 15:29:54 2011
New Revision: 6745

Log:
[shunt]: reject non-float messages in right inlet

Modified:
    trunk/src/classes2.cxx

Modified: trunk/src/classes2.cxx
==============================================================================
--- trunk/src/classes2.cxx (original)
+++ trunk/src/classes2.cxx Sun Mar  6 15:29:54 2011
@@ -448,7 +448,9 @@
 	\attr int hi;
 	\constructor (int n=2, int i=0) {this->n=n; index=i; mode=0; lo=0; hi=n-1; noutlets_set(n);}
 	\decl 1 float(int i) {index = mod(i,n);}
+	\decl 1  list(int i) {index = mod(i,n);} // necessary because otherwise 'void anything' catches it
 	\decl void anything(...) {
+		if (int(argv[0])) RAISE("no such method");
 		out[index](argv[1],argc-2,argv+2);
 		if (mode) {
 			index += sgn(mode);



More information about the Gridflow-cvs mailing list