2008/6/12 Philippe Monnet <[EMAIL PROTECTED]>:
>   - the require "mywebsvcproxy" returns true
>   - if I evaluate mywebsvcproxyns I get undefined

This is the expected behavior. See:

irb> require 'date'
=> true
irb> date
NameError: ...
irb> Date
=> Date

As in the above Ruby session, require in Ruby does not create a local
variable with the filename in the namespace. It simply makes classes
defined in the file available. IronRuby follows this behavior when
requiring DLL, so,

require 'mydllname'
MyDLLObject = MyDLLNamespace::MyDLLClass.new
...

-- 
Seo Sanghyeon
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to