From: arjun ghosh Date: 2007-04-26T21:59:59+09:00 Subject: Re: C++ code into Ruby, I need it fast, no time for RTFM ------=_Part_97400_31679664.1177592396105 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Andrei...i went pretty much through the ring-a-mole my self once...one good link for ruby is http://www.ruby-doc.org/core/ and http://www.zenspider.com/Languages/Ruby/QuickRef.html#34%20Graph%20of%20sai= d%20hierarchy: for quick ruby ref...atleast i found so...enjoying RUBYing... -ciao AG On 4/26/07, bpfurtado wrote: > > On Apr 25, 11:54 am, "Tim Pease" wrote: > > On 4/25/07, Andrei Ursan wrote: > > > > > > > > > Strings value are read from the keyboard, and i need a getch and > clrscr > > > method. > > > And how can I export the ruby code into *.exe ? > > > > > Can somebody translate this into ruby ? I need it fast... > > > > Have you gotten a suitable answer yet? > > > > There are several options for you here. > > 1) Transliterate into Ruby (as you imply) > > 2) Leave your code as-is and wrapper it using Ruby's C api > > 3) Leave your code as-is and use the Ruby DL module to load your > > library and invoke the methods > > 4) Use the RubyInline module to simply "inline" your C/C++ code into a > > Ruby program > > > > By far the quickest solution is going to be the RubyInline route. > > You'll need a compiler installed on your machine to handle the C++ > > code compilation step RubyInline performs. You can install RubyInline > > via the gem command: > > > > gem install -r rubyinline > > > > Shoot a nice note of thanks off to Eric Hodel and Ryan Davis. They've > > done a great job with that little gem. > > > > > Have fun learning Ruby! I've learned far more about programming by > > using Ruby than I ever learned using C/C++ or Java. > > > > You can=B4t blame C/C++ or Java or any programming language for your > learning skills. > > -- > "Minds are like parachutes, they work best when open." > "I know nothing except the fact of my ignorance." > Bruno Patini Furtado > Software Developer > text adventures suite: http://bpfurtado.net/tas > software development blog: http://bpfurtado.livejournal.com > Ruby related topics: http://bpfurtado.livejournal.com/tag/ruby > > > ------=_Part_97400_31679664.1177592396105--