[cgiapp] Proposal: Change CGI::Snapp's base class from Hash::FieldHash to Moos (sic)
Ron Savage
ron at savage.net.au
Mon Dec 10 14:22:47 EST 2012
Hi Mark
On 11/12/12 01:13, Mark Stosberg wrote:
> On 12/08/2012 09:23 PM, Ron Savage wrote:
>> Hi Mark
>>
>> See https://rt.cpan.org/Public/Dist/Display.html?Name=Moo
>>
>> As I said in my last msg on that thread, I'd better re-write the article
>> :-((.
>
> The summary I see from there is that in a Moo Role, you should do this:
>
> "use Moo::Role;"
>
> not this: "use Moo; use Moo::Role",
> ( which would make the package both a class and a role).
In theory. But I found the code won't compile if I /just/ use 'use
Moo::Role'. I'll fabricate a sample (again) shortly.
I forget now, but I think it was my use of BUILD(), again, which caused
problems.
--
Ron Savage
http://savage.net.au/
Ph: 0421 920 622
More information about the cgiapp
mailing list