Default values for undef attributes

2011-01-29 Thread Octavian Rasnita
Hi, I want to use some attributes that get a default value when they are not sent as constructor's parameters and also when they are sent as constructor parameters but with an undef value. I have gave an example below and shown that the third way of constructing the object doesn't work

Re: Default values for undef attributes

2011-01-29 Thread Mike Raynham
On 29/01/11 07:23, Octavian Rasnita wrote: Hi, I want to use some attributes that get a default value when they are not sent as constructor's parameters and also when they are sent as constructor parameters but with an undef value. I have gave an example below and shown that the third way of

Re: Default values for undef attributes

2011-01-29 Thread Hans Dieter Pearcey
On Sat, 29 Jan 2011 09:23:45 +0200, Octavian Rasnita orasn...@gmail.com wrote: I want to use some attributes that get a default value when they are not sent as constructor's parameters and also when they are sent as constructor parameters but with an undef value. Use MooseX::UndefTolerant.

Re: Default values for undef attributes

2011-01-29 Thread Mike Raynham
On 29/01/11 13:20, Hans Dieter Pearcey wrote: On Sat, 29 Jan 2011 09:23:45 +0200, Octavian Rasnitaorasn...@gmail.com wrote: I want to use some attributes that get a default value when they are not sent as constructor's parameters and also when they are sent as constructor parameters but

Re: Inheritance not working for some weird reason.

2011-01-29 Thread Robin Smidsrød
On 26.01.2011 00:19, Jesse Luehrs wrote: I just released circular::require to CPAN to help diagnose these kinds of issues: http://search.cpan.org/~doy/circular-require-0.01/lib/circular/require.pm Thanks a lot, Jesse! I'm having some issues with circular loading in some work code, and I'm

Re: [PATCH] Test RegexpRef type using SvRX or checking PERL_magic_qr

2011-01-29 Thread David Leadbeater
Hi, On 31 Dec 2010, at 21:46, David Leadbeater wrote: With pluggable regexp engines checking ref of a qr// isn't correct; it's also possible for a normal Regex to be blessed into another class. [...] There's now a cleaned up version of this sitting in topic/regexpref after review from rafl.

Re: Default values for undef attributes

2011-01-29 Thread Octavian Rasnita
From: Hans Dieter Pearcey h...@pobox.com On Sat, 29 Jan 2011 09:23:45 +0200, Octavian Rasnita orasn...@gmail.com wrote: I want to use some attributes that get a default value when they are not sent as constructor's parameters and also when they are sent as constructor parameters but with