Re: [perl #46821] [TODO] [Pir] Recursive calls on ResizablePMCArrays fail. Is this what we want?

2009-02-20 Thread Bob Rogers
   From: chromatic chroma...@wgz.org
   Date: Thu, 19 Feb 2009 11:45:54 -0800

   The real question is Should setting the read-only property on a 
   ResizablePMCArray set the contained PMCs to read-only as well?

   I can fix the test (answer no) or I can fix the code (answer
   yes).  I just can't tell you which behavior is most correct.

   -- c

If the answer were yes, how would one create a read-only
ResizablePMCArray that contains mutable PMCs?

-- Bob Rogers
   http://www.rgrjr.com/


Re: [perl #46821] [TODO] [Pir] Recursive calls on ResizablePMCArrays fail. Is this what we want?

2009-02-19 Thread chromatic
On Wednesday 24 October 2007 13:52:33 Paul Cochrane wrote:

 In t/src/ro.t there is the todo item:

 # XXX: should this work?

 and the related pir code:

 # three = 4 # should fail -- is that what we want

 The question is: is the behaviour encapsulated in the test actually what we
 want?

The real question is Should setting the read-only property on a 
ResizablePMCArray set the contained PMCs to read-only as well?

I can fix the test (answer no) or I can fix the code (answer yes).  I just 
can't tell you which behavior is most correct.

-- c