Hi

Am 07.02.2016 11:55 schrieb "Robert Klemme" <shortcutter / googlemail.com>:
>
> On Sat, Feb 6, 2016 at 10:48 AM, A Berger <aberger7890 / gmail.com> wrote:
> > Hello
> > Does anyone know a command to reset an irb-session to a clean state
(like
> > ending and restarting irb)? - on the mobile restarting it is not
optimal.
>
> What does "not optimal" mean?

It takes about 10seconds to startup and the battery gets hot.
Maybe the android phone is swapping a lot.

> > If not thats the purpose of GC.
>
> The purpose of GC is to free memory of no longer referenced objects,
> nothing else. I have no idea what you want to convey with that
> sentence of yours.

if doing main = nil
then it could deliver an initial state.
I dont know why this doesnt work.

> > Can I free the master-object (main?) or do I have to get a tree of all
> > objects and clear them.
> > how can this be done with classes (=constants)? - Setting to nil is not
the
> > same as unsetting.
>
How can I unset (=> not defined) a var?

thanks Berg
(supressed text/html)
Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>