|
Hi Paul,
and everytime you made a coffee and then you went back to your computer
it has rebooted, since the ui-interface noticed it was in an infinite
loop waiting for your input <g>.
but its generally not really possible. consider an object that has a
variable i and these 4 methods:
Counter>>initialize
i:=0
Counter>>inc
i:=i+1 \\ 42
Counter>>count
200 timesRepeat: [self inc]
Counter>>dumb
[self inc. i<50]whileTrue
it would not be sufficient to store the state of _all_ variables, the
moment one var changes, it would not be sufficient to store the state of
the program at this moment (iow that it is in method inc when i gets set
to the same value), you would also need to store the history of the
program states (iow that it comes from method dumb).
werner
|