diff cbackend.rhope @ 20:b715532225c0

Differentiate between method and normal calls in dataflow graph compiler
author Mike Pavone <pavone@retrodev.com>
date Wed, 27 May 2009 21:42:37 -0400
parents 90c20dc3f4e5
children e9272f7ebd26
line wrap: on
line diff
--- a/cbackend.rhope	Wed May 27 21:29:15 2009 +0000
+++ b/cbackend.rhope	Wed May 27 21:42:37 2009 -0400
@@ -52,9 +52,9 @@
 	}
 }
 
-Method ID@C Method Registry[reg,method:out]
+Method ID@C Method Registry[reg,method:out,notfound]
 {
-	out <- [[reg]Lookup >>]Index[method]
+	out,notfound <- [[reg]Lookup >>]Index[method]
 }
 
 Blueprint C Function
@@ -322,6 +322,11 @@
 	out <- [program]Functions <<[ [[program]Functions >>]Set[ [func]Name >>, func] ]
 }
 
+Method?@C Program[program,funcname:is,isnot]
+{
+	is,isnot <- [[program]Method Registry >>]Method ID[funcname]
+}
+
 _Defs C Program[text,func:out]
 {
 	Print["start _Defs"]