[Ruby] marshalling lambdas

Joe Van Dyk joe at pinkpucker.net
Fri Aug 22 12:50:12 PDT 2008


Hi,

In Ruby, I guess you can't marshal a lambda/proc object, right?  Is
that possible in lisp or other languages?

What I was trying to do:

l = lamda { ... }
Bj.submit "/path/to/ruby/program", :stdin => Marshal.dump(l)

So, I'm sending BackgroundJob a lambda object, which contains the
context/code for what to do.  But, guess that wasn't possible.  I
ended up marshaling a normal ruby object that contained instructions
for what to do after the program ran.

Joe



More information about the Ruby mailing list