Re: [cgi-prototype-users] Moose implementation of CGI::Prototype

2009-08-23 Thread Randal L. Schwartz
> "Terrence" == Terrence Brannon  writes:

Terrence> Randal wants to maintain prototype-based OOP for a Moose-based 
version 
Terrence> of CGI::Prototype. I'm wondering if such a Moose class could be as 
Terrence> simple as:


Terrence> package CGI::Prototype::Moose;

Terrence> use Moose;
Terrence> extends 'Class::Prototyped';

Not really.  The prototype stuff of Moose is where you want to start, and it
has a different interface.  If you just pulled in Class::Prototyped, you'd
have a lot of potential conflicts, especially around anonymous classes.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
 http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
cgi-prototype-users mailing list
cgi-prototype-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cgi-prototype-users


[cgi-prototype-users] Moose implementation of CGI::Prototype

2009-08-23 Thread Terrence Brannon
Randal wants to maintain prototype-based OOP for a Moose-based version 
of CGI::Prototype. I'm wondering if such a Moose class could be as 
simple as:


package CGI::Prototype::Moose;

use Moose;
extends 'Class::Prototyped';

...

1;

Links:
--
* There is a sample prototype OO moose in this test example:
http://github.com/nothingmuch/moose/blob/0bb2cc8a6a2e4b967b5d8efbcf1ab27f5d95e990/t/200_examples/006_example_Protomoose.t

but I dont fancy breaking with the Class::Prototyped API.

* My current fork of CGI::Prototype which uses Moose:
http://github.com/metaperl/perl-module-cgi-prototype/blob/f3c71299cd98de7b4c4d2b291d95623a761db548/lib/CGI/Prototype/Moose.pm


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
cgi-prototype-users mailing list
cgi-prototype-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cgi-prototype-users