Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Serializable Proc
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Patrick Li, post: 4616163"] You mean where the closure would point to the same variable after Yes. ie. a = 3 p = lambda{a} Marshal.dump(p, File.open("myProc.proc", "w") so that I can go p = Marshal.load(File.open("myProc.proc", "r")) p[] #should print 3 The 'connections' between variables should be saved. As well as the values of the variables currently in the closure. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Serializable Proc
Top