Moose/mouse r/o variables

2011-03-28 Thread Peter Gordon
I have a small class, where I would like the variables to be read only by external calls, but rw for internal access. Why? If there is a variable defined as lazy and ro, writing the value fails. So it needs to be rw. Is there a recommended way of dealing with this problem? The other reason I

Re: Moose/mouse r/o variables

2011-03-28 Thread Stevan Little
On Mar 28, 2011, at 8:28 AM, Peter Gordon wrote: I have a small class, where I would like the variables to be read only by external calls, but rw for internal access. Peter, has 'foo' = ( is = 'ro', writer = '_set_foo', ... ); Is the more common method for this. - Stevan

Re: Moose/mouse r/o variables

2011-03-28 Thread Chris Prather
On Mon, Mar 28, 2011 at 8:28 AM, Peter Gordon pe...@pg-consultants.com wrote: I have a small class, where I would like the variables to be read only by external calls, but rw for internal access. Why? If there is a variable defined as lazy and ro, writing the value fails. So it needs to be

Re: Advice on Module name, please.

2011-03-28 Thread Fiachra O Donoghue
Regarding (2), I'd just export one method called, say, dbi2obj, and require that the desired object type (simple or complex, or whatever) be passed as a parameter. On 28 March 2011 17:49, Sam Brain s...@stanford.edu wrote: I would like ask the group for advice on module naming, as I have seen

Re: Advice on Module name, please.

2011-03-28 Thread Hans Dieter Pearcey
On Mon, 28 Mar 2011 09:49:22 -0700, Sam Brain s...@stanford.edu wrote: (1) Does DBIx::BuildMooseObjects seem a reasonable name, and I don't see anything Moose-specific here. The interesting bit is the transformation from a single-level array to a multi-level structure grouped by specific