[macruby-changes] [1154] MacRuby/branches/experimental/roxor.h
source_changes at macosforge.org
source_changes at macosforge.org
Wed Mar 25 18:31:18 PDT 2009
Revision: 1154
http://trac.macosforge.org/projects/ruby/changeset/1154
Author: lsansonetti at 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:
--------------
MacRuby/branches/experimental/roxor.h
Modified: MacRuby/branches/experimental/roxor.h
===================================================================
--- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090325/f073e571/attachment.html>
More information about the macruby-changes
mailing list