[Rubycocoa-devel 271] Re: retainCount for ruby-side init

Zurück zum Archiv-Index

kimura wataru kimur****@i*****
Wed Jun 7 01:14:39 JST 2006


On Mon, 5 Jun 2006 18:35:48 +0200, Laurent Sansonetti wrote:
> Hi Kimura,
> 
> It's strange, with my branch the test fails:
> 
>    1) Failure:
> test_objc_rbclass(TC_RetainCount) [./tc_retaincount.rb:38]:
> alloc.initInRB.
> <2> expected but was
> <1>.
> 

oops! that's my mistake. I got same results.

> I suspect this problem is fixed somewhere in the branch, though I  
> don't know where exactly...   I think it should be 1, as when the GC  
> will do its pass the object will be released, as it will be decreased  
> to 0.
> 

You are right. It should be 1, same as other init cases.


-- 
kimura wataru



More information about the Rubycocoa-devel mailing list
Zurück zum Archiv-Index