Re: TB2::Mouse will be internal use only... with one hitch.

2011-11-30 Thread brian d foy
> This doesn't work. Mouse doesn't see the superclass's attributes because they > were declared by a different namespace, TB2::Mouse. The subclass must use > TB2::Mouse if it wants to override attributes. I hadn't realized that. It > also must use TB2::Mouse if it wants to consume TB2 roles.

Re: TB2::Mouse will be internal use only... with one hitch.

2011-11-30 Thread Michael G Schwern
On 2011.11.30 12:28 PM, Ricardo Signes wrote: >> You're patching Test-Simple. > > Okay. So, I want to write a third-party test output formatter that emits test > results in the binary language of my water vaporators. I subclass some core > formatter with "use parent" and add some methods or some

Re: TB2::Mouse will be internal use only... with one hitch.

2011-11-30 Thread Ricardo Signes
* Michael G Schwern [2011-11-30T15:22:51] > On 2011.11.30 7:20 AM, Ricardo Signes wrote: > > re: "internal use" > > > > What does "internal" define here? What are the boundaries of the space to > > which TB2::Mouse use is internal? > > Like any other "internal use only" .pm file in a CPAN modul

Re: TB2::Mouse will be internal use only... with one hitch.

2011-11-30 Thread Michael G Schwern
On 2011.11.30 7:20 AM, Ricardo Signes wrote: > re: "internal use" > > What does "internal" define here? What are the boundaries of the space to > which TB2::Mouse use is internal? Like any other "internal use only" .pm file in a CPAN module, it can only be used by the Test-Simple distribution (T

Re: TB2::Mouse will be internal use only... with one hitch.

2011-11-30 Thread Ricardo Signes
re: "internal use" What does "internal" define here? What are the boundaries of the space to which TB2::Mouse use is internal? In what scenarios do I have to write something that uses it? If I do that, am I likely using Mouse sugar? -- rjbs

Re: TB2::Mouse will be internal use only... with one hitch.

2011-11-30 Thread Nicholas Clark
On Tue, Nov 29, 2011 at 10:33:42PM -0800, Michael G Schwern wrote: > On 2011.11.29 9:49 PM, David E. Wheeler wrote: > > How much slower will this make running the core tests, > > since neither Mouse nor Mouse::XS will every be available > > there (during development, at core installation time). >

Re: TB2::Mouse will be internal use only... with one hitch.

2011-11-30 Thread Ricardo Signes
Please stop cc'ing my personal email address on this mailing list mail. I'm already a subscriber. It just pollutes my "personal mail from friends" folders. -- rjbs

Re: TB2::Mouse will be internal use only... with one hitch.

2011-11-30 Thread Michael G Schwern
On 2011.11.30 4:31 AM, David Golden wrote: > On Wed, Nov 30, 2011 at 6:13 AM, Michael G Schwern wrote: >> Unfortunately, that would be a circular dependency between Mouse and TB2 >> unless... > > Not a complete dependency, though, as one can function without the > other. As long as the CPAN cli

Re: TB2::Mouse will be internal use only... with one hitch.

2011-11-30 Thread David Golden
On Wed, Nov 30, 2011 at 6:13 AM, Michael G Schwern wrote: > Unfortunately, that would be a circular dependency between Mouse and TB2 > unless... Not a complete dependency, though, as one can function without the other. As long as the CPAN clients are smart enough not to follow the prereq chain

Re: TB2::Mouse will be internal use only... with one hitch.

2011-11-30 Thread Michael G Schwern
On 2011.11.30 2:04 AM, David Golden wrote: > On Wed, Nov 30, 2011 at 12:39 AM, Michael G Schwern wrote: >> There is a 3rd choice, which brings us full circle to where this discussion >> started. We write TB2::Object [1] to select load Mouse if its available, >> TB2::Mouse otherwise. That way TB2

Re: TB2::Mouse will be internal use only... with one hitch.

2011-11-30 Thread David E. Wheeler
On Nov 29, 2011, at 9:39 PM, Michael G Schwern wrote: > 1. The core gets a shrouded copy of Mouse::Tiny, with different > namespaces, as discussed at the beginning. > > 2. TB2 gets a performance kick once Mouse is installed. > > 3. Extension authors can use Mouse to subclass TB2 and consume >

Re: Capturing only STDERR with Capture::Tiny?

2011-11-30 Thread Gabor Szabo
On Wed, Nov 30, 2011 at 12:16 PM, David Golden wrote: > On Tue, Nov 29, 2011 at 11:25 PM, Gabor Szabo wrote: >> What is your suggestion to solve this? >> Does a request for such feature in Capture::Tiny sound reasonable? > > It's reasonable and has been requested before: > > https://rt.cpan.org/P

Re: Capturing only STDERR with Capture::Tiny?

2011-11-30 Thread David Golden
On Tue, Nov 29, 2011 at 11:25 PM, Gabor Szabo wrote: > What is your suggestion to solve this? > Does a request for such feature in Capture::Tiny sound reasonable? It's reasonable and has been requested before: https://rt.cpan.org/Public/Bug/Display.html?id=60515 I haven't found the tuits to div

Re: TB2::Mouse will be internal use only... with one hitch.

2011-11-30 Thread David Golden
On Wed, Nov 30, 2011 at 12:39 AM, Michael G Schwern wrote: > There is a 3rd choice, which brings us full circle to where this discussion > started.  We write TB2::Object [1] to select load Mouse if its available, > TB2::Mouse otherwise.  That way TB2 classes are compatible with Mouse just in > tim