Re: [Rubydotnet-developer] rubydotnet - first announcement
Status: Alpha
Brought to you by:
thomas
From: Thomas S. <th...@th...> - 2003-09-04 14:57:05
|
> Does this mean a joint effort is slipping away from all of us? R2 of our bridge > includes a C++ extension module as well in approx 300 lines of code (if that is > a measure of something). Additionally, we also have approx. 250 automated unit > tests using TestUnit for both the socket and direct C++ versions of the bridge. > Not necessarily. I started my own little project because the threshold to getting started on the two existing projects was a little high. I needed to get some basic understanding of the ruby extension model and managed C++ first and besides none of the existing projects had public CVS access to the latest and greatest making it impossible to contribute. Even if our efforts are separate and uncoordinated there are still bits and pieces that can easily be transferred from one project to the other if we agree to do so. > I like this -- didn't know it was a new feature of module in 1.8. Can you do it > without the "include <namespace>" line? We really like that our bridge flattens > the .NET namespaces (but we can still use the FQN if necessary). No, you don't have to include System::Collections, I just did that in the example to show that you can do it, just as you can with native ruby modules. The trick is the on-demand discovery of classes and namespace which saves time at start-up and (a lot) of memory without loosing the ruby-look-and-feel :-). Once discovered the namespace (represented by an empty ruby module) or class is assigned to a constant the same way as ruby works itself. Cheers, Thomas |