From: Berend de B. <be...@po...> - 2001-05-28 06:09:44
|
Eric Bezault <er...@go...> writes: > -- does this work with a moving gc?? > > the answer is no: it is not safe when using a moving GC and > you might get weird behaviors. The only safe way to pass > pointers to Eiffel objects to C code is to use directly the > $ construct in the arguments of the external routines. So > I would suggest that you put all your external routines in > a class *_EXTERNALS along with routines without POINTERs > as arguments or results, and that you put this class in > clusters spec/[ise|se|ve|hact] (you can possibly use 'gepp'). Another option is to have a few caches in string helper where you can copy the data to, so it's save against the moving gc. For eposix this seems to be a much better solution than having another layer. Groetjes, Berend. (-: |