On Thu, May 10, 2007 at 12:35:00PM +0400, Oleg Pronin wrote: > 2007/5/10, Matt S Trout <[EMAIL PROTECTED]>: > > > >On Thu, May 10, 2007 at 02:49:25AM +0400, Oleg Pronin wrote: > >> I have some modules that works with objects and do not know how these > >> objects is designed inside. > >> They are universal programs that import some data from one project to > >> another (in XML). All they need is a small config describing what and > >where > >> to find. > >> For these modules it doesn't matter is the property a column or virtual > >> column. They just set some data (usually via set/get column for > >perfomance > >> improvements). The ability to hide design of property (frozen or not > >etc) is > >> sometimes very useful. Isn't this is one of main features of DBIC? > > > >I see your point. I think the ultimate solution to this is Moose and > >multiple > >meta-attr classes - so your code that doesn't care what sort of property > >it > >is just talks to "all attributes" and the persistence part handles > >specific > >types of attribute only. > (top-posting fixed) > > Could you be specify some examples of code for me to understand what did you > mean? (and what is "Moose" ? :)
Plenty examples in the way http://code2.0beta.co.uk/reaction/svn does stuff. Moose is a full meta-protocol enabled object system, go find it on CPAN :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director Want a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote http://chainsawblues.vox.com/ http://www.shadowcatsystems.co.uk/ _______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class Wiki: http://dbix-class.shadowcatsystems.co.uk/ IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/ Searchable Archive: http://www.mail-archive.com/[email protected]/
