Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
RbDynamicMethod first drop
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
John Lam  
View profile  
 More options Dec 7 2005, 12:01 am
Newsgroups: comp.lang.ruby
From: John Lam <drjf...@gmail.com>
Date: Wed, 7 Dec 2005 14:01:21 +0900
Local: Wed, Dec 7 2005 12:01 am
Subject: [ANN] RbDynamicMethod first drop

I just posted a drop of RbDynamicMethod here:
http://www.iunknown.com/articles/2005/12/06/first-drop-of-rbdynamicme...

You'll need a copy of Visual C++ 2005 (probably any edition, but I haven't
tried it on anything other than the Team Edition for Software Developers) to
compile the sources. I understand that cl.exe (and hopefully its friends
link.exe and mt.exe) ships with the WinFX SDK for those of you who don't
have a copy of Visual Studio 2005. I've provided a Rakefile, so you don't
need the IDE, just the compiler + linker + manifest tool.

Here's a taste of the syntax in this example that maps CLR exceptions to
Ruby exceptions:

create_ruby_method('convert_clr_exception') do
  try
    ldstr    'error'
    newobj   'Exception.ctor(String)'
    throw_ex
  catch_ex   'Exception'
    call     'static ExceptionHelper.RaiseRubyException(Exception)'
  end_try
  ldc_i4_4
  ret
end

It's about 330 lines of C++ and 100 lines of Ruby code.

Comments and suggestions would be *greatly* appreciated!

Thanks,
-John
http://www.iunknown.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google