[Ironruby-core] Suggestion for ir.exe.config

Tomas Matousek Tomas.Matousek at microsoft.com
Sun Feb 8 13:01:32 EST 2009


Thanks for suggestion, this should be doable even w/o Ruby specific config section.
BTW, you application can actually use any configuration format you want. You don't need to rely on the default configuration reader when a hosting DLR language (IronRuby).

Tomas

From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Claudio Maccari
Sent: Sunday, February 08, 2009 2:56 AM
To: ironruby-core at rubyforge.org
Subject: [Ironruby-core] Suggestion for ir.exe.config

Don't you think ir.exe.config would be much readable with this syntax

<options>
     <ruby>
            <librarypaths>
                  <path>..\..\Languages\Ruby\libs\</path>
                  <path>..\..\..\External\Languages\Ruby\ruby-1.8.6\lib\ruby\site_ruby\1.8\</path>
                   <path>..\..\..\External\Languages\Ruby\ruby-1.8.6\lib\ruby\site_ruby\</path>
                   <path>..\..\..\External\Languages\Ruby\ruby-1.8.6\lib\ruby\1.8\</path>
            </librarypaths>
      </ ruby>
</options>

instead of this ?

<options>
  <set language="Ruby" option="LibraryPaths" value="..\..\Languages\Ruby\libs\;..\..\..\External\Languages\Ruby\ruby-1.8.6\lib\ruby\site_ruby\1.8\;..\..\..\External\Languages\Ruby\ruby-1.8.6\lib\ruby\site_ruby\;..\..\..\External\Languages\Ruby\ruby-1.8.6\lib\ruby\1.8\" />
</options>

Create a Custom Configuration Sections Using ConfigurationSection is quite easy
http://msdn.microsoft.com/en-us/library/2tw134k3.aspx

cheers
claudio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090208/eb7dd848/attachment.html>


More information about the Ironruby-core mailing list