>>>>> "J" == Jesse van den Kieboom <troplosti / orcaweb.cjb.net> writes:

J> Now I'm really confused. I can't call any functions that sit in the
J> loaded file. 
  
 yes,

J>              I can't define functions from within C that the ruby script
J> I load can call.

 no,

svg% cat b.rb
#!/usr/bin/ruby
def tt
    A::tt()
end

tt
svg%
 
svg% cat x.rb
#!/usr/bin/ruby

module A
   module_function
   def tt
      puts "A::tt"
   end
end

load("b.rb", true)
svg%
 
svg% x.rb
A::tt
svg% 

J> So how to call a function from the loaded file...

 submit a RCR ? :-)


Guy Decoux