Ask a Question related to Ruby, Design and Development.
-
Nathan Weston #1
Marshalling delegates
I can't seem to marshal a delegate. The code below:
class Foo < SimpleDelegate
end
Marshal.dump(Foo.new(nil))
Gives me an error:
TypeError: singleton can't be dumped
The weird thing is that defining _dump or marshal_dump in Foo doesn't
make this problem go away.
Even stranger is that this error suddenly started showing up in code
that used to work... I'm not sure what may haev changed in the interim
(haven't touched the code in a few weeks), except I may have apt-get
updated my ruby installation.
Is there any way I can dump a delegate?
Nathan
Nathan Weston Guest
-
Delegates
Hi, Anybody got any example code for the implement a custom delegate. Can't seem to find any examples!!.. Many thanks Gibbo -
Delegates in FMS
Hi has anybody managed to get some sort of scoping class/object like a Delegate or Proxy to work with SERVER SIDE ACTIONSCRIPT? Not having much... -
Events and Delegates
How in a asp.net web form can you have two different objects events call the same sub with different signatures. Example: I have 1 ImageButton... -
Singletons and Marshalling
Does anyone know how singleton's and marshalling interact? In particular, I want to have my singleton class be able to dump and load (and be... -
marshalling C++
I have a function with the following signature HRESULT func(BSTR id, VARIANT *retval); The variant gets filled with a SAFEARRAY of IDispatch... -
Yukihiro Matsumoto #2
Re: Marshalling delegates
Hi,
In message "Marshalling delegates"
on 03/11/21, Nathan Weston <elbows@spamcop.net> writes:
|I can't seem to marshal a delegate. The code below:
|
|class Foo < SimpleDelegate
|end
|
|Marshal.dump(Foo.new(nil))
|
|Gives me an error:
|TypeError: singleton can't be dumped
|
|The weird thing is that defining _dump or marshal_dump in Foo doesn't
|make this problem go away.
It's a bug in 1.8.0. Soon to be fixed. Thank you.
matz.
Yukihiro Matsumoto Guest



Reply With Quote

