From: Evan Webb Date: 2005-04-26T05:16:40+09:00 Subject: Re: Marshal / memcache "can't dump anonymous module" 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 wrote: > Hi, > > I want to use the ruby memcache client > (http://www.deveiate.org/code/Ruby-MemCache.html) > 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 > >