On Monday 20 April 2009 15:06:47 you wrote:
> On Monday 20 April 2009 12:33:20 you wrote:
> > > Thanks for your answser :)
> > >
> > > This is strange in the activate_new_context method I've done this :
> > >
> > >   newContext = alloc_stack_context (size);
> > >
> > >   newContext->traced = 0;
> >
> > You definitely want FROM_INT (0) or _gst_nil_oop here, or expect crashes
> > at the next GC.
> >
> > >   fprintf (stderr, "traced value : %d\n", newContext->traced);
> > >   fprintf (stderr, "parent value : %d\n", ((gst_method_context)
> > > OOP_TO_OBJ (_gst_this_context_oop))->traced);
> > >
> > > And if the traced value for the parent context is not nil any idea of
> > > the problem ?
> >
> > nil is not zero, it is _gst_nil_oop (usually an hex value ending with
> > 0x...800).
> >
> > Look at all callers of alloc_stack_context, in particular
> > _gst_prepare_execution_environment.  But, adding new instance variables
> > to contexts is a no-no. :-)
> >
> > By the way, with your GSOC application having been accepted "with very
> > high probability", I would like you to publish your code somewhere as
> > soon as possible.  I don't care in what state it is, don't be afraid of
> > that.
> >
> > Paolo
>
> Is it possible to send a message to an object inside the
> methodsend_block_value ?

Instead of adding a new variable maybe I can reuse native_ip in the context 
structure ?

Gwenael Casaccio


_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to