Revision
1154
Author
lsansonetti@apple.com
Date
2009-03-25 18:31:17 -0700 (Wed, 25 Mar 2009)

Log Message

added comments about the rb_vm_arity_t for the mere mortals willing to use it

Modified Paths

Diff

Modified: MacRuby/branches/experimental/roxor.h (1153 => 1154)


--- MacRuby/branches/experimental/roxor.h	2009-03-26 01:18:56 UTC (rev 1153)
+++ MacRuby/branches/experimental/roxor.h	2009-03-26 01:31:17 UTC (rev 1154)
@@ -92,10 +92,10 @@
 rb_vm_method_t *rb_vm_get_method(VALUE klass, VALUE obj, ID mid, int scope);
 
 typedef struct {
-    short min;
-    short max;
-    short left_req;
-    short real;
+    short min;		// min number of args that we accept
+    short max;		// max number of args that we accept (-1 if rest)
+    short left_req;	// number of args required on the left side
+    short real;		// number of args of the low level function
 } rb_vm_arity_t;
 
 #define VM_BLOCK_PROC	0x0001	// block is a Proc object