On Mar 23, 2017, 2:03 PM -0700, Eric Wong <e / 80x24.org>, wrote:
>
> *Shrug* I don't know. clogger has been doing something similar
> for years:
>
> https://bogomips.org/clogger.git/plain/ext/clogger_ext/extconf.rb
>
> But if I had to do it all over again, I would only have the
> pure Ruby version.


Ive had success using RubyInline and putting C and ruby side-by-side with a rescue in-between:

class MyClass
 begin
  inline :C do
   # 
  end
 rescue CompilationError
  def blah
   # 
  end
 end
end

(supressed text/html)
Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>