Skip Menu |

This queue is for tickets about the Class-Trait CPAN distribution.

Report information
The Basics
Id: 27502
Status: resolved
Priority: 0/
Queue: Class-Trait

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Non-file traits
Currently, a trait must be in its own file. It would be nice if that were not true, like "use base". Although I cannot think of a use beyond testing and debugging as a trait that isn't in its own file doesn't seem very reusable and defeats the point of a trait. #!/usr/bin/perl -w package TTest; use Class::Trait 'base'; sub name { return "wibble"; } package Foo; use Class::Trait "TTest"; sub new { bless {} } package main; my $foo = Foo->new; print $foo->name;
I see how it might be useful for debugging, but it's a very low priority compared to other features. Thus, I'll have to reject this without a patch. Sorry 'bout that. Cheers, Ovid
On Fri Jul 27 05:55:14 2007, OVID wrote: Show quoted text
> I see how it might be useful for debugging, but it's a very low priority > compared to other features. Thus, I'll have to reject this without a > patch. Sorry 'bout that.
Why not just leave it open? No harm. Its marked "wishlist", maybe at some point someone can supply the patch.
Please reply to me directly rather than re-open this bug. I can put it in my TODO list and let people peruse that, but until someone has a pressing need that motivates them enough to supply a patch, I *DON'T* want another non-bug padding the list of apparently open bugs for Class::Trait. There are other bugs you've reported which are real issues I need to resolve and I really appreciate that. This is not one of them. I know folks will often just glance at the size of a bug list and not take the time to evaluate it (hey, we often don't have a lot of spare time). Just because you and I might do that ("this module's fine. Those are only wishlist items") doesn't mean that others do. Cheers, Ovid