[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Marshal / memcache "can't dump anonymous module"

benny

4/25/2005 6:29:00 PM

Hi,

I want to use the ruby memcache client
(http://www.deveiate.org/code/Ruby-Mem...)
to store objects in the memcached-server.

Unfortunatly I need to store anonymous modules in the cache and the
ruby-memcache uses Marshal which doesn't allow to dump anonymous modules.

Is there a way to circumvent this behaviour?

BTW. Why doesn't Marshal allow such a thing?


benny
2 Answers

Evan Webb

4/25/2005 8:17:00 PM

0

anonymous module's can't be dumped because there is no name associated
with them, and thus no way to tag them in the Marshal'd output. To be
able to marshal them, you'd have to marshal the anonymous modules'
contents (method definitions with code for the methods, etc), which is
something ruby doesnt do (save for nodedump, etc which are not
standard).

Evan Webb // evan@fallingsnow.net

On 4/25/05, benny <listen@marcrenearns.de> wrote:
> Hi,
>
> I want to use the ruby memcache client
> (http://www.deveiate.org/code/Ruby-Mem...)
> to store objects in the memcached-server.
>
> Unfortunatly I need to store anonymous modules in the cache and the
> ruby-memcache uses Marshal which doesn't allow to dump anonymous modules.
>
> Is there a way to circumvent this behaviour?
>
> BTW. Why doesn't Marshal allow such a thing?
>
>
> benny
>
>



ThePhisherKIng

5/18/2007 12:35:00 AM

0

"SyVyN11" <syvyn11@peoplepc.com> wrote in news:f2ilqn$c3a$1
@news.albasani.net:

> you do know that Falwell is dead.
>
> It's been on FNC and CNN.
>
>

Of course he knows. That's one of the "better" eulogies for the departed
Mr. Falwell. Twas on Slate.com. Says so on the bottom of the piece.