From: Alan Garrison Date: 2005-12-21T07:16:29+09:00 Subject: Re: Bruce Eckel and Ruby Jamey Cribbs wrote: > James Britt wrote: > >> >> Besides, we should be ranting about how Ruby is better than Lisp. >> >> :) > > > Ruby kicks Cobol's ass! > But Ruby won't be truly complete until you can do something like this: ---------------------------------- require 'inline' class Inline::Bf < Inline::BrainF_ck # [1] def initialize(mod) super(mod) end def import(header) @src << "#import #{header}" end end class MyClass inline(:Bf) do |builder| builder.bf %q{ >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.#>+++++++++++[<+++++>-]<.>++++++++[<+++>-]<.+++.------.--------.[-]>++++++++[ <++++>-]<+.[-]++++++++++. } end end MyClass.new.test -------------------------------- [1] http://www.muppetlabs.com/~breadbox/bf/ Although I'd bet I'm not the first to think of this :) -- Alan Garrison Cronosys, LLC Phone: 216-221-4600 ext 308