Hi,
I'm working on a native extension by writing an IronRuby library in C#. I
hit the wall with the CallSiteStorage parameters that can optionally come as
the first 0 or more parameters for a ruby method.
What are they and what's their use? I tried to understand that from their
current uses accross the code by I couldn't understand how IronRuby knows
what to set there.
For example, this is from ArrayOps:
[RubyMethod("sort")]
public static object Sort(
BinaryOpStorage/*!*/ comparisonStorage,
BinaryOpStorage/*!*/ lessThanStorage,
BinaryOpStorage/*!*/ greaterThanStorage,
BlockParam block, RubyArray/*!*/ self) {
...
...
}
How does IronRuby knows that the first should be a comparison storage, the
second a less-than storage and the third a greater-than storage? is it
because of the name of the parameter?
Thanks!
Shay.
--
--------------------------------------------------
Shay Friedman
Author of IronRuby Unleashed
http://www.IronShay.com
Follow me: http://twitter.com/ironshay
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core