From: Eleanor McHugh Date: 2009-06-05T01:01:35+09:00 Subject: Re: [ANN] Endless Ruby 0.0.2 On 4 Jun 2009, at 15:10, Michael Bruschkewitz wrote: > "Caleb Clausen" schrieb im Newsbeitrag > Michael > Bruschkewitz wrote: (in another thread) >>> At breakfast I had the idea it would be possible to implement/ >>> apply it to current file it by >>> simply using >>> "require 'tool4endH8ers.rb'" or >>> "require 'languageConverter_pyi.rb'" or >>> "require 'languageConverter_BASIC.rb'" or >>> "require 'languageConverter_f77.rb'" or... >>> "require 'applySomeOtherWeirdOptions.rb'" or... >>> at the beginning of each file or at the beginning of main file. >>> I'm sure some Kernel.magic would make this possible. >> >> I'm not entirely sure, but it seems like he's saying that if you >> should be able to require "languageConverter_f77.rb", and then write >> the rest of the file in fortran. > > That's exactly may idea, until next required "converter"... or some > end marker. > It wold be similar to eval_f77 << END_OF_F77CODE ... > Core question remaining: Who writes those converters? I can't help but wonder why bother when you could just write F77 code, compile it and then use either ruby/dl or ruby-ffi to call it directly from ruby. Ellie Eleanor McHugh Games With Brains http://slides.games-with-brains.net ---- raise ArgumentError unless @reality.responds_to? :reason